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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query help 1

Status
Not open for further replies.

angels2

Technical User
Apr 4, 2004
84
US
I am running a query with part numbers and totals in another column most part numbers are listed more than once and each has it's own total is there any way I can combine the part numbers so they only appear once and then give me the sum of all the totals I need to get down to one part number only used once but have the total of all under one part number
Thanks for any help
 
SELECT partno, sum(parttotal) as totsum from mytable
GROUP BY partno

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top