troubleshooting Question

SQL Statement to return a single record(s) creating multiple columns from a single column.

Avatar of skinsfan99
skinsfan99Flag for United States of America asked on
Microsoft SQL ServerSQL
5 Comments1 Solution535 ViewsLast Modified:
I have a table containing the following:

ID                   Value
ABC1             111
ABC1            222
ABC1            333
ABC2            111
ABC2            222
ABC2            333

Is there a way to get back the following result with a SQL statement?

ID             Value        Value        Value    
ABC1         111            222          333
ABC2        111             222          333

Thanks
ASKER CERTIFIED SOLUTION
Qlemo
"Batchelor", Developer and EE Topic Advisor
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
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 5 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