In the next tutorial shown at this link:
http://www.functionx.com/access/Lesson30.htm
My output after the sequence of steps now shown:
Code:
Practical Learning: Summarizing |
|
- In the bottom section of the window, change the header of the second column to Qty: Category
- Click its Total combo box and select Count
- Change the header of the third column to Total Spent: Purchase Price
- Click its Total combo box and select Sum
- Change the header of the fourth column to Average: Purchase Price
- Click its Total combo box and select Avg

- Right-click the query and click SQL View
SELECT [Company Assets].[Asset Type],
Count([Company Assets].[Asset Type]) AS Qty,
Sum([Company Assets].[Purchase Price]) AS [Total Spent],
Avg([Company Assets].[Purchase Price]) AS Average
FROM [Company Assets]
GROUP BY [Company Assets].[Asset Type];
- In actually I got this for the SQL code :
SELECT [Company Assets].Category,
Count([Company Assets].Category) AS Qty,
Sum([Company Assets].[Purchase Price]) AS [Total Spent],
Avg([Company Assets].[Purchase Price]) AS [Avg]
FROM [Company Assets]
GROUP BY [Company Assets].Category;
I followed the steps in the instructions (also shown above), but there must be something missing, my output is not the same.
What am I doing wrong?
Respectfully,
Lou Reed