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

How to sum duplicates in a table?

Status
Not open for further replies.

mmax98

Technical User
Jun 17, 2002
3
0
0
US
Hello,
I have a table with duplicate part numbers and I want to get a sum of the duplicates? Would a crosstab query be appropriate? If so, how do I go about it?
 
select part,sum(quantity),count(part) from partsdatabase group by part having count(part) > 1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top