Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

A simple CrossTab procedure Expand / Collapse
Posted Saturday, October 13, 2007 9:05 PM


Group: General Forum Members
Last Login: Saturday, July 20, 2002 12:00 AM
Points: 22, Visits: 1
Comments posted to this topic are about the item A simple CrossTab procedure

Post #410497
Posted Thursday, December 25, 2008 1:19 PM



Group: General Forum Members
Last Login: Today @ 3:23 PM
Points: 42,036, Visits: 39,415
Interesting concept... but it doesn't work correctly. I ran the code and the test code, as is... the results are not exactly a cross tab... look at the scores for each person in each column...

student course_SQL__grade course_VB___grade
---------- ----------------- -----------------
ELI 79 79
ELI 80 80
SHMIL 69 69
SHMIL 99 99

(4 row(s) affected)

--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

Helpful Links:
How to post code problems
How to post performance problems
Post #625698
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse