Thanks, I have changed the statement to this, but now get an Expected Paramaters:2 error - Is this something to do with the dates? I have tried it both with the dates enclosed in '#' characters and without.
SELECT CostCentres.Description, Sum(OrderItems.Price) As TotalSpend FROM CostCentres...
I tried that by including the OrderHead.OrderDate field and OrderHead table in the SELECT statement, and adding WHERE OrderHead.PONumber = OrderItems.PONumber to join the tables, and then the date criteria. but get an error saying something along the lines of OrderHead.OrderDate not being...
I have a few tables, but need to get data from 3 of them in 1 query. The Tables are CostCentre, OrderItems and OrderHeader
I need to run a query that will total the cost of all items purchased between certain dates for each cost centre. I can do this for all orders in the database using this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.