Click here to Skip to main content
15,920,110 members
Home / Discussions / Database
   

Database

 
AnswerRe: Display Report Veritally for Horizontal Data Pin
i.j.russell8-Apr-10 9:27
i.j.russell8-Apr-10 9:27 
AnswerRe: Display Report Veritally for Horizontal Data Pin
Mycroft Holmes8-Apr-10 11:45
professionalMycroft Holmes8-Apr-10 11:45 
AnswerRe: Display Report Veritally for Horizontal Data Pin
Sandesh M Patil9-Apr-10 6:33
Sandesh M Patil9-Apr-10 6:33 
QuestionResult display! [modified] Pin
Learner5207-Apr-10 5:00
Learner5207-Apr-10 5:00 
AnswerRe: Result display! Pin
Richard Blythe7-Apr-10 12:44
Richard Blythe7-Apr-10 12:44 
AnswerRe: Result display! Pin
Mycroft Holmes7-Apr-10 14:26
professionalMycroft Holmes7-Apr-10 14:26 
GeneralRe: Result display! Pin
Learner5207-Apr-10 22:52
Learner5207-Apr-10 22:52 
GeneralRe: Result display! Pin
Mycroft Holmes8-Apr-10 11:43
professionalMycroft Holmes8-Apr-10 11:43 
If you work through the article I basically do it in 2 steps. Build up the query that will service the pivot.

Get your student details, the course details and your performance information into a normal result set, do not get any extra data like ID information that is not needed.

Get a distinct list of the course names (either from the result set or all the courses), these will be your pivoted columns.

I would do a hard coded mini query to get a feel for it, once you get a result by hard coding the pivot columns you can turn it into dynamic sql. To debug the dynamic sql print the text and try and run that.
Never underestimate the power of human stupidity
RAH

QuestionEXEC sp_dbcmptlevel database, 90---error Pin
raghvendrapanda7-Apr-10 0:11
raghvendrapanda7-Apr-10 0:11 
Questionhow to get data from another server Pin
raghvendrapanda7-Apr-10 0:07
raghvendrapanda7-Apr-10 0:07 
AnswerRe: how to get data from another server Pin
Eddy Vluggen7-Apr-10 1:10
professionalEddy Vluggen7-Apr-10 1:10 
AnswerRe: how to get data from another server Pin
Bassam Saoud8-Apr-10 10:08
Bassam Saoud8-Apr-10 10:08 
QuestionSql Server 2005 Languages support?? Pin
Aman786Singh6-Apr-10 22:44
Aman786Singh6-Apr-10 22:44 
AnswerRe: Sql Server 2005 Languages support?? Pin
Mycroft Holmes6-Apr-10 23:15
professionalMycroft Holmes6-Apr-10 23:15 
AnswerRe: Sql Server 2005 Languages support?? Pin
Bernhard Hiller9-Apr-10 2:20
Bernhard Hiller9-Apr-10 2:20 
QuestionCustom Ribbon side effect - Access 2007 [modified] Pin
john john mackey6-Apr-10 13:19
john john mackey6-Apr-10 13:19 
QuestionUnusal Action in MS Access Database Pin
Dominick Marciano6-Apr-10 9:48
professionalDominick Marciano6-Apr-10 9:48 
AnswerRe: Unusal Action in MS Access Database Pin
David Mujica7-Apr-10 3:24
David Mujica7-Apr-10 3:24 
QuestionMessage Removed Pin
6-Apr-10 2:10
mrkeivan6-Apr-10 2:10 
AnswerRe: coding for a software which is gonna run on a server Pin
R. Giskard Reventlov6-Apr-10 2:53
R. Giskard Reventlov6-Apr-10 2:53 
AnswerRe: coding for a software which is gonna run on a server Pin
David Mujica6-Apr-10 3:05
David Mujica6-Apr-10 3:05 
GeneralRe: coding for a software which is gonna run on a server Pin
PIEBALDconsult6-Apr-10 11:07
mvePIEBALDconsult6-Apr-10 11:07 
QuestionSend E-mail at particular Interval Pin
sumit70345-Apr-10 23:29
sumit70345-Apr-10 23:29 
AnswerRe: Send E-mail at particular Interval Pin
Garth J Lancaster6-Apr-10 0:01
professionalGarth J Lancaster6-Apr-10 0:01 
GeneralRe: Send E-mail at particular Interval Pin
sumit70346-Apr-10 0:17
sumit70346-Apr-10 0:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.