select id ,g1.job ,score ,t_rank from ( select * ,row_number()over(partition by job order by score desc) as t_rank from grade )g1 left join ( select job ,count(job) as cnt fro...