Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caculating Totals by groups with a number field

Status
Not open for further replies.
Dec 20, 2004
30
US
Hi. I have a tblorder and tbldetail, 1 to many relationship. tblorder has order A, B, C... and each order has detailed items in tbldetail for example CD1, CD2, CD3...
Each item has a number field named Qty for order quantity.

I'm wondering if I can add up the Qty field by items or get a total by a term(monthly, etc..) Something like monthly sales by item, or total monthly sales, etc..

I'm in the logical design phase for a fairly challenging project to me, and this is something I have to know in advance to set up the tables and relationships. Thanks.
 
Anyway, I'd look at the Northwind sample database ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top