troubleshooting Question

condensing duplication

Avatar of Ryan Wallace
Ryan Wallace asked on
Microsoft SQL ServerSQL
10 Comments1 Solution36 ViewsLast Modified:
I have three columns: ID, FeatureID, and FeatureName the data looks like this:

ID      FeatureID      FeatureName
1      111                      smaller seatbelt
2      111                 smaller seatbelt
3      111                      smaller seatbelt
4      222                      larger wheels
5      333                      more bass
6      333                      more bass


I would like to have the data look like this:

FeatureID      FeatureName                    ID1      ID2      ID3
111                      smaller seatbelt               1      2      3
222                      larger wheels                       4            
333                      more bass                       5      6      

what would be the best approach to accomplish this?

thank you!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros