Hi Frzz,
Am trying to create a calulation view with two tables. After joining two tables i want the data in below format could you please guide me how to achieve this.
I tried doing it by creating calulated columns of different Status and performed join at each level. But it degrades the performance. Is there is any other way that i can ahieve this??
Table1:
| EmployeeID | Name |
|---|---|
| EMP001 | Ram |
| EMP002 | Raj |
| EMP002 | Rahul |
Table2:
| EmployeeID | Status |
|---|---|
| EMP001 | Temporary |
| EMP002 | Contract |
| EMP003 | Permanent |
Result:
| EmployeeID | EmployeeName | Temporary | Contract | Permanent |
|---|---|---|---|---|
| EMP001 | Ram | YES | NULL | NULL |
EMP002 | Raj | NULL | YES | NULL |
| EMP003 | Rahul | NULL | NULL | YES |
Best Regards,
Krishna.