Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Display results VERTICALLY in Results window Expand / Collapse
Author
Message
Posted Thursday, September 27, 2007 2:27 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, September 21, 2009 9:10 AM
Points: 7, Visits: 20
Comments posted to this topic are about the item Display results VERTICALLY in Results window
Post #403728
Posted Sunday, December 19, 2010 1:15 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, December 19, 2010 1:14 PM
Points: 1, Visits: 6
Hi ,

I belive Pivot which is a new TSQL 2005 feature can do it easily
Post #1036991
Posted Sunday, December 19, 2010 4:06 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 1:53 PM
Points: 35,366, Visits: 31,905
rasha.adel82 (12/19/2010)
Hi ,

I belive Pivot which is a new TSQL 2005 feature can do it easily


Pivot is also quite a bit slower than a good ol' fashioned crosstab. Have a look, rasha...
http://www.sqlservercentral.com/articles/T-SQL/63681/


--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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

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

Add to briefcase

Permissions Expand / Collapse