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

reduce my query results to one line per cat

Status
Not open for further replies.

donnycarr

Programmer
Oct 10, 2001
9
GB
I have the following columns resulting from a query.

Cat Litres
LOW ALCOHOL 2.310000092
LOW ALCOHOL 6.820000112
LOW ALCOHOL 8.910000116
PREMIUM 110671.6946
PREMIUM 131329.5967
PREMIUM 138779.0585

I only want one line with LOW ALCOHOL and for the litres column to be a 'sum' of all the LOW ALCOHOL's.

Any suggestions?



 
Use a group by query. Group by cat, sum litre Maq B-)
<insert witty signature here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top