Cross Tabs Activity - Duplin County Schools

advertisement
Document1 1
ACCESS LESSON 6 – CROSSTAB QUERIES – Activity 8
Using various tables in the GamesDB, create a Cross Tab query for each scenario below to produce the desired results.
You will be required to answer questions on a separate sheet of notebook paper. Label the paper, L6_Act8
QUERY 1
Using the Regional Sales table, move the Region field to a Row and the Salesman field to a Column. Calculate the
SUM of the sales by Region.
1. What are the total regional sales for the North Region?
2. What are the total regional sales for the East Region?
QUERY 2
Using the AceDeptStore table, move the Dept. field to a row and the Product field to a Column. Calculate the SUM of
quantity sold by Dept. (department).
3. What were the total sales for the Men’s dept.?
4. What were the total sales for the Women’s dept?
QUERY 3
Using the Games table, move the Player field to a row and the Game field to a Column. Calculate the SUM of points
scored by game, by player.
5. How many points has Andrews scored so far this season?
6. How many points has Simpson scored so far this season?
In the design view of the query, on the TOTAL line, in the Total Of Points field, change the calculated value from SUM
to AVG.
7. What is the average points scored for Sanders this season?
8. What is the average points scored for Thompson this season?
9. What is the average points scored for Smith this season?
QUERY 4
Using the CarSales table, rearrange the data so that the Product information becomes a row and the Salesmen
information becomes a column.
10. What is the value of the total Chevy sales (all salesmen)?
11. What is the value of the total Ford sales (all salesmen)?
As performed in Query 3, change the calculated value of the total sales from SUM to average in the query’s design
view.
12. What are the average Ford sales (all salesmen)?
Download