Write a SQL Query to find Max salary of each Department with department name.

  Рет қаралды 12,841

The Data Millennials

The Data Millennials

Күн бұрын

Write a SQL Query to find Max salary of each Department with department name.
This is a trick question. There can be some departments without any employees. So we have to ask the interviewer if they expect the name of such Department also in the result.
If you want to be better in Analytics, then do follow the below Playlist:-
Excel Playlist:- • What is MS Excel | Int...
SQL Playlist:- • Introduction to SQL | ...
Google Data Studio playlist:- • Introduction to Looker...
You can follow us on the below social media handles:-
Blog: - thedatamillenn...
Facebook:- / the-data-millennials-5...
Instagram: - / the_data_millennials
LinkedIn: - / data-millennials-6b5a0...
Twitter: - / datamillennials

Пікірлер: 7
@vsagar4b38
@vsagar4b38 Жыл бұрын
Thanks for Nice Explanation
@thedatamillennials
@thedatamillennials Жыл бұрын
apologies for the delayed response. I am Glad that our video was useful and helpful . Request you to please check out our other videos of Excel, SQL and Google data studio ( Looker) and also please help us to reach out to all your friends and family members who might want to learn something new by sharing our content. And Request you to please subscribe our channel to learn more about such topics
@RajChoradiya
@RajChoradiya 5 күн бұрын
hi, can we use inner join instead of left join.
@hasanmougharbel8030
@hasanmougharbel8030 2 жыл бұрын
Hey man, glad to discover your channel. I have a simple question as a new sql learner. Could i use min() and max() with text data types? Thanks for taking care of this.
@thedatamillennials
@thedatamillennials 2 жыл бұрын
Hi Hasan, You can use the min() and max() function with text data type and the max function will return text values in descending order(text starts with z will come on 1st row ) while the min function will return text values in ascending order(text starts with a will come on 1st row ). Example of query is mentioned below. select max(Employee_name) from sql_interview.emp_vv1; ------> Result is Waseem select min(Employee_name) from sql_interview.emp_vv1; ------> Result is Atul
@omiticonsulting
@omiticonsulting Жыл бұрын
@@thedatamillennials Great explanation . Really appreciated
@thedatamillennials
@thedatamillennials 11 ай бұрын
thanks
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 10 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 43 МЛН
路飞做的坏事被拆穿了 #路飞#海贼王
00:41
路飞与唐舞桐
Рет қаралды 25 МЛН
Practice SQL Interview Query | Big 4 Interview Question
14:47
SQL QUERY TO FIND HIGHEST SALARY IN A DEPARTMENT
3:55
Crack Concepts
Рет қаралды 80 М.