Jump to content

SELECT 'a ranking' from SUM / COUNT


paultaylor

Recommended Posts

Hi All,

 

I have a table with three columns

emp_code, emp_job, emp_result

holding multiple lines of data for each ‘emp_code’

 

I want to find the ranking based on SUM of 'emp_result' / COUNT 'emp_job' WHERE 'emp_code' = n. Can this be done only in SQL ???

 

Thanks,

Paul

Link to comment
https://forums.phpfreaks.com/topic/71808-select-a-ranking-from-sum-count/
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.