Member_D
Member number | Member name | Contact _id |
100 | Nikhila | 900 |
200 | Karthik | 901 |
300 | Manisha | 902 |
Contact_D
Contact_number | Contact_name |
900 | Nikhila |
902 | Karthik |
905 | Manisha |
906 | Vinisha |
Audit_F
Record I'd | Column name | Old value | New value |
100 | Member column | A | B |
900 | Contact column | C | D |
200 | Member column | A | B |
905 | Contact column | A | C |
906 | Contact column | B | D |
Audit_F.Record Id Stores Contact and Member Id’s respective to column name, if it is contact column then it will store Contact Id, and if column name is member Column then Record Id will store Member Number
We we do this joins in DB level we are getting expected results.
Member_D.member_Id =audit_F.record I'd or member_D.contact_id=audit_F.record I'd
And contact_D.contact I'd =audit_F.record_id
Here audit.Record I'd is storing member and contact it's
Our requirement is to get the data of contact and member and audit data in one report
But in analytic this is not satisfying
Expected result:
Member number | Contact number | Column name | Contact name | Member name |
100 | Member column | 900 | Nikhla | Nikhila |
100 | Contact columnn | 900 | Nikhila | Nikhila |
200 | Member column | 901 | Karthik | Karthik |
| Contact column | 905 | Manisha | |
| Contact column | 906 | Vinisha | |
Result which analytics giving
Member number | Contact number | Column name | Contact name | Member name |
100 | Member column | 900 | | Nikhila |
| Contact column | 900 | Nikhila | |
200 | Member column | 901 | | Karthik |
| Contact column | 905 | Manisha | |
| Contact column | 906 | Vinisha | |
Here contact number 900 is also a member so we are unable to see his member details ,
As we can't do 'OR' condition in rpd . So please suggest me to get member details if he is member.