Information

Author(s) Quentin Cappart
Deadline Keine Frist
Abgabenlimit No limitation

Einloggen

Compréhension des mots-clefs (classement)

Parmi les propositions suivantes, trouvez celle donnant une description correcte des mots-clefs (ou requêtes) suivants.


Question 1:
select *, row_number() over (order by salary desc) as rank
from instructors;
Question 2:
select *, dense_rank() over (order by salary desc) as rank
from instructor;
Question 3:
select *, rank() over (partition by dept_name order by salary desc) as rank
from instructor
order by dept_name, rank;
Question 4:
select name, salary, ntile(4) over (order by salary desc) as rank
from instructor
where rank = 1;
Question 5:
with ranked_instructors as (
    select name, salary, ntile(4) over (order by salary desc) as rank
    from instructor)
select name, salary, rank
from ranked_instructors
where rank = 1;