Jump to content

COUNT/SUM of each DISTINCT value


kamal213

Recommended Posts

Hi guys,

 

Please could you tell me how you would calculate the sum of a column..but of each distinct value in a a table?

 

So for example if the distinct values of a salesman in your table are: John, Bill and Bob how would you calculate there total sales without manually typing "count where salesman =John" etc

 

Please let me know if you need more information.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/266853-countsum-of-each-distinct-value/
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.