SQL Query to find Employee with maximum salary in each department | SQL Interview | SQL Tutorial

preview_player
Показать описание
SQL Query to find Employee with maximum salary in each department. SQL Interview Question and Answer.

Please like & share the video.

Subscribe the Channel to keep watching interesting videos helpful for your career growth:

--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------

Checkout different playlists:

--------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------

Checkout Important videos :

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

Thanks for watching. If you want to connect on LinkedIn and stay updated with my professional updates and network with me, here's my LinkedIn profile:

LinkedIn:

CodingGlitz
Автор

very nice explanation with all the doubts cleared perfectly.

vinaygoswami
Автор

Thank you so much got this last movement 🙌

anaghadamame
Автор

A big thanks sir ji💟 I was doing all same mistakes and your video gave me the logic of how to use join. Thank You🙏

rishikabhati
Автор

We could solve this using windows function too. select * from ( Select dept, firstname, salary, row_number () over (partition by dept order by salary desc) s from emp) e where s = 1

Ummaruchan
Автор

Thoda Complicated tha thank you bhai...

ashitoshthakur
Автор

Thank a lot for these meaningful and informative videos Sir, But mai Data Analytics ki preparation kar rahi hu and already I'm working in IT company. So, please Sir more Data Analytics Interview related questions upload kro sir please.

supriyarani
Автор

Useful video, , sir pls explain in english so that everybody get understand..plzz

vyshnavib
Автор

U can solve also like
Select empname_name, department_name, max(distinct salary) from company
Group by (department name)

vikkynarepagul
Автор

Nice explanation Sir, please keep posted such videos..

dibyaprakash
Автор

nice bro no one know this query u r ultra

mbgaming
Автор

Please create a video on Stored Procedure. And pls make detailed video if possible

SakshiKumari-lcwb
Автор

can you share videos on sql window functions

nehajha
Автор

I guess hackerank need to design test cases from you, cause the 2 query u write using IN which fetch 2 hr department emplyoee is ignored by the test casses

animeshdas
Автор

As we can see same column two time like salary and department are coming twice in the final query how can we fix this thing?

mayankbhardwaj
Автор

How to calculate second highest salary in each department..

dineshghule
Автор

i think it isnt correct one, there are dept and salery column repeated twice, , , , i dont consider it as correct query

smrutiranjanparida
Автор

Don't advertise your video as English when it is not. Thumbs down

ecooled