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
B Patel112 reputationPosted Mar 20, 2018, 9:57 PM EDT
kiran kumar14 reputationPosted Mar 20, 2018, 10:27 AM EDT
kiran kumar14 reputationPosted Mar 21, 2018, 5:37 AM EDT
Kartik PawarRank #1,052 · 1.8K reputationPosted Mar 20, 2018, 10:10 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts