inblog logo
|
silver
    SQL문제풀기

    [SQL문제풀기] Workers With The Highest Salaries

    silver's avatar
    silver
    Nov 28, 2025
    [SQL문제풀기] Workers With The Highest Salaries
    Contents
    문제MySQL, ORACLE

    문제

    StrataScratch - Workers With The Highest Salaries
    StrataScratch
    StrataScratch - Workers With The Highest Salaries
    https://platform.stratascratch.com/coding/10353-workers-with-the-highest-salaries?code_type=3

    MySQL, ORACLE

    내가 작성한 오답

    : title 테이블에 있는 official job titles만 사용해야 했다
    select t.worker_title from worker w join title t on w.worker_id = t.worker_ref_id where w.salary = (select max(salary) from worker);

    내가 작성한 정답

    with a as (select t.worker_title, w.salary from worker w join title t on w.worker_id = t.worker_ref_id) select worker_title from a where salary = (select max(salary) from a);
    Share article

    silver

    RSS·Powered by Inblog