Hi,
in SQL Server 200 oyu will have to use appropiate CASE expressions, in SQL Server 2005 you can use the new PIVOT functionality-
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
|||I am using SQL 2000 which someone else said needed a CASE statement. What I have seen seems to want to add things. What I have is a list of numbers and then columns that are the results of my Query.
I have columns named Store , Name, Net, Tax, Deposits (and a bunch of others)
I have rows with the store numbers 2, 3, 4, 5 ,6 that I sort by
I would like the columns as rows and the store numbers across the top
Thanks
sql
No comments:
Post a Comment