I've been looking at how to do this all morning, but I'm in dire need of help. I'm an SQL newb, I'm looking to convert my columns to rows right now. Currently all of my columns go horizontally:
[ ][Group] [Location] [Item] [Model Number]...[Data Update/BU]
[1][Admin] [Noc] [PC] [Optiplex 760] [N/A]
The idea of this database is that I would like to query a serial number, and get all the information related to it. The query I execute for this is:
SELECT * FROM Table
WHERE Serial = '1234567890'
Ideally, I would like to be able to view this data in a more vertical sense like below when I execute that query:
[ ] [COL] [DATA]
[1] [Group] [Admin]
[2] [Location] [NOC]
[3] [Item] [Desktop PC]
[4] [Model Number] [Optiplex 760]
[5] [Role] [Server]
[6] [User Name] [User]
[7] [Serial] [1234567890]
[8] [Workgroup/Domain] [Workgroup]
[9] [IP Address] [192.192.192.192]
[10] [Computer Name] [User-PC]
[11] [Operating System] [Windows]
[12] [32/64-Bit] [64-Bit]
[13] [HDD] [1TB]
[14] [RAM] [8GB]
[15] [CPU] [i5]
[16] [Toner/Ink] [N/A]
[17] [Notable Software] [Office 2003]
[18] [Notes] [N/A]
[19] [Cleaning Summary] [Cleaned 5/6, updated, blown out, etc...]
[20] [Reboot] [N/A]
[21] [Data Update/BU] [N/A]
Any help would be appreciated...Thanks!