SQL Interview : Window Function

preview_player
Показать описание
Most Frequently asked SQL interview question

Retrieve the top 3 highest-paid employees for each
department, sorted by salary in descending order.

Retrieve the top 5 highest-paid employees for each
department, sorted by salary in descending order.

Рекомендации по теме
Комментарии
Автор

Do more videos on sql questions
It will be very useful for all the data professionals

prasadchowdary
Автор

Nice video, which windows app you use to write on screen?

livenotlive
Автор

I think you query is particularly wring I mean dense_rank would be fine here

datalover
Автор

Why did you use row number instead of rank/dense_rank? Same salary is then labeled different ranks

RunakRoshan-kgwy
join shbcf.ru