TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jay S
NA
230
59.2k
PIVOT - Non Aggregate
Jun 17 2013 10:26 AM
I have a simple table like this:
QRef
RefNum
Score
1.01
72019
1
1.02
72019
2
1.03
72019
4
1.04
72019
4
1.05
72019
1
1.06
72019
0
1.07
72019
2
1.08
72019
0
And I need to pivot it out like this:
RefNum
1.01
1.02
1.03
1.04
1.05
1.06
1.07
1.08
72019
1
2
4
4
4
1
0
2
No aggreation, pretty much a transpose...can't work it out for the life of me..
The QRef won't always be 1.01,1.02....1.08 they could be different each time
Reply
Answers (
2
)
Query building methods based on mulitple parameter
please optimize the following query.i want to remove while