multiple operation query

A

AccessDummy

I am new to sql. I want to design a query where I can sum the value of
fields multiplied by each other. AKA Total VatCOSt = SUM of vatrate
unitcost for a specified form number.

Any ideas how I would do this
 
M

Michel Walsh

Hi,



SELECT ItemID, SUM(qty *unitcost)
FROM somewhere
GROUP BY ItemID




Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top