I have these 3 fields (and others) in an Access 97 database; [Department] a text field, [Quantity] a number field, [Cost] a number field. There are 30 different departments and 9000 records.
This query works and gives the total cost for each department.
SELECT [Department], SUM([Quanty]*[Cost]) AS [Total Cost] FROM [Product]
GROUP BY [Department]
Adding this to SELECT does not work.
SUM(Total Cost) AS [Grand Total].
How can I get the sum of the [Total Cost] column, or the cost of every department?
This query works and gives the total cost for each department.
SELECT [Department], SUM([Quanty]*[Cost]) AS [Total Cost] FROM [Product]
GROUP BY [Department]
Adding this to SELECT does not work.
SUM(Total Cost) AS [Grand Total].
How can I get the sum of the [Total Cost] column, or the cost of every department?