help me out in solving this problem. my table is like below.
| UniqueId | ActivityName |
| 111 | activity1 |
| 112 | activity1 |
| 111 | activity2 |
| 113 | activity2 |
i want the result like below using sql pivoting query 2016
| UniqueId | activityname | activity1 | activity2 | |
| 111 | activity1 | yes | yes | |
| 112 | activity1 | yes | No | |
| 113 | activity2 | No | yes |
Jenith ThakkarPosted Jul 28, 2020, 3:20 AM
Please accept the answer if it will helpful for you
Thank you
Jenith ThakkarPosted Jul 29, 2020, 5:30 AM
Try this
Anju DPosted Jul 29, 2020, 1:36 AM
Jenith ThakkarPosted Jul 29, 2020, 1:31 AM
Anju DPosted Jul 29, 2020, 1:25 AM
Anju DPosted Jul 28, 2020, 9:10 AM
Aman GuptaPosted Jul 28, 2020, 7:25 AM
Jenith ThakkarPosted Jul 28, 2020, 4:14 AM
Anju DPosted Jul 28, 2020, 2:47 AM
Jenith ThakkarPosted Jul 28, 2020, 2:17 AM
There's two value in 111 but as per your expected output you want only activity1 show in activity name?
You want to show activity name in expacted output or
just like
uniqueID Activity1 Activity2