본문 바로가기
데이터관련공부/SQL

[HackerRank] SQL - Top Earners

by 자유롭고 싶은 키털트 2022. 5. 26.

 

1. 제출 (스스로 푼 방법)

 

2. 정답

select max(months * salary), count(months * salary)
from Employee where (months * salary)
= (select max(months * salary) from Employee);
 
 
출처:
반응형