sql server 2005 - Pivot sql query -


i've sql server 2005 table competitor (id, title, cdate, price) want format query view in gridview this: alt text http://i46.tinypic.com/2cmxg76.jpg

please me writing sql query.

sql 2005 supports pivot - books online doc http://msdn.microsoft.com/en-us/library/ms177410(sql.90).aspx

the main shortcoming i've found pivot stuff must specify column names, although can use query beforehand , inject values varchar variable , execute that.


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -