Login
Register
Close
Articles
Technology News
All Articles
Submit Guest Post
Tools & Utilities
Code Converter
Forum
Learn
Tutorials
Interview Experience
Practice Tests
Freelancers
Services
Software Development
SEO & Digital Marketing
IT Companies
Login
Register
Articles
Technology News
All Articles
Submit Guest Post
Tools & Utilities
Code Converter
Forum
Learn
Tutorials
Interview Experience
Practice Tests
Freelancers
Services
Software Development
SEO & Digital Marketing
IT Companies
Discussion Forums
.NET
SQL Server
You must
Sign In
to post a response.
Category:
SQL Server
05 Dec 2017 18:46
sankar
Joined:
14/09/2006
Level:
Silver
Points:
161
Points:
3
How to get column values as row
I have table as below
Name age d1 d2 d3
xxx 20 5 2 1
xxx 20 3 2 1
xxx 20 5 4 6
I need result as unique d column values as below
xxx 20 5
xxx 20 2
xxx 20 1
xxx 20 3
xxx 20 4
xxx 20 6
#769448
15 Dec 2017 21:13
V.Narayanaprasad
Joined:
04/01/2008
Level:
Silver
Points:
222
Points:
0
Use SQL pivot to achieve your work
Sign In
to post your comments
Submit New Thread
Return to
Return to Discussion Forum
Top Contributors
Today
Last 7 Days
jignesh
(10)
more...