Query to get the Employee name with highest salary per department

preview_player
Показать описание
Below are the four methods shown in the video:
1) Using INNER Join
2) MAX with Window function
3) RANK() with Window function
4) WITH CTE

#sqlservertutorial #sqlserver #microsoftsqlserver #sqlservertutorialforbeginners #sqltraining

THANK YOU FOR WATCHING!
Рекомендации по теме
Комментарии
Автор

appreciate your effort. I was looking for this question from many days. Finally i met your videos. Thanks . Please make such more videos which are asked in interview.

chulbulclub
Автор

Great Video.. Thanks for the clear concept explanation.

ashrayashray
Автор

Thank you so much! This video is soo helpful! 🙏

davidbrown
Автор

Please post data also-without that it will be like theory

anantsagarjoshi
Автор

I use inner join and i got an error message, ' 1052 Column 'dept' in field list is ambiguous'

What should I do??

pranavtamrakar
Автор

@Towards Data Analytics, what if there are two employees with same salary in each department, how can we show only one name

sujitpandey