
코테준비 | Top earners/Weather Observation Station 13~18(+해커랭크 SQL 모든 문제 해결 완료)
·
SQL
☑️ Top Earners[문제]Write a query to find the maximum total earnings for all employees as well as the total number of employees who have maximum total earnings. Then print these values as space-separated integers.직원의 가장 높은 총 수입과 해당 수입을 받는 직원 수집계두 출력값은 스페이스 두개로 연결[문제 풀이]내 코드 SELECT CONCAT(max(months*salary),' ',count(DISTINCT employee_id))FROM EMPLOYEEWHERE months*salary IN (SELECT max(months*sa..