Jump to content

group by multiple columns.


spillage

Recommended Posts

you ll have to forgive me as i know very little about mysql. i have a db which contains multiple columns of the product codes and quantities. i am not to sure how to group by product code with multiple columns. would i be roughly select * from db sum(quantities) group by product1;product2. does this look about right.

 

cheers

 

 

Link to comment
https://forums.phpfreaks.com/topic/154997-group-by-multiple-columns/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.