Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
ı have 3 tables and i wrote sp but i want to change stored procedure's view
http://c1302.hizliresim.com/16/m/k8gt7.png[^]

I want to stored procedure's this view. if i exec my sp i want to this sp's view. sorry for my english :)

http://c1302.hizliresim.com/16/m/k8gts.png[^]

help pls.
Posted

1 solution

You need cross tab query for that. In sqlserver has a tool/statement named PIVOT. It will help you in this context. Just follow the following articles. Hope you understand that concept and implement that as your need.

sql-server-cross-tab-query-with-pivot
sql-server-pivot-examples
sql-server-pivot-and-unpivot-table-examples
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900