![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
Question4:Can you create a cross-tab report in my SQL Server! How can I get the report ab
Question4:Can you create a cross-tab report in my SQL Server!
How can I get the report about sale quality for each store and each quarter
and the total sale quality for each quarter at year 1993?
You can use the table sales and stores in datatabase pubs.
Table Sales record all sale detail item for each store. Column store_id is the id of
each store, ord_date is the order date of each sale item, and column qty is the
sale qulity. Table stores record all store information.
I want to get the result look like as below:
Output:
stor_name Total Qtr1 Qtr2 Qtr3 Qtr
4
---------------------------------------- ----------- ----------- ----------- -----------
-----------
Barnum's 50 0 50 0 0
Bookbeat 55 25 30 0 0
Doc-U-Mat: Quality Laundry and
Books 85 0 85 0 0
Fricative Bookshop 60 35 0 0 25
Total 250 60 165 0 25
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)