Hi Friends,
I i have table like below ; i need to group by CWID and RequestNo and based on Type (Email or PC) corresponding status should capture in two(Emailstatus and PC status) new columns. Kindly let me know the query if you know please.
| REQUESTNO | CWID | Type | Status | |
| Request 1 | ABC | Completed | ||
| Request 1 | ABC | PC | WIP | |
| Request 2 | ABC | WIP | ||
| Request 2 | XYZ | PC | Completed | |
| Request 2 | XYZ | Completed |
I need out put like this
| Request No | CWID | Email status | PC status |
| Request 1 | ABC | Completed | WIP |
| Request 2 | ABC | WIP | N/A |
| Request 2 | XYZ | Completed | Completed |
Thanks in advance,
Kiran
kiran kumarPosted Mar 21, 2018, 9:37 AM
B PatelPosted Mar 21, 2018, 1:57 AM
kiran kumarPosted Mar 20, 2018, 2:27 PM
Kartik PawarPosted Mar 20, 2018, 2:10 PM