http://www.4guysfromrolla.com/webtech/071906-1.shtml
If you want to convert rows into columns check out the PIVOT operator
http://technet.microsoft.com/en-us/library/ms177410.aspx
Thanks
Dev
You can use PIVOT or you can use Case statements to do your move if you can.