Self Join | Ep-10 | Top 20 SQL Interview Questions | GeeksforGeeks

  Рет қаралды 93,173

GeeksforGeeks

GeeksforGeeks

Күн бұрын

Пікірлер: 25
@dreamGaming0399
@dreamGaming0399 Жыл бұрын
I think there is a mistake at 5:06 where in the select clause you have mentioned e2.sal which is managers salary... Instead of e1.sal That is 2975 is the manager (jones) salary. Which is less than scott's and Ford's salary.
@RealSlimShady-um6gf
@RealSlimShady-um6gf 8 ай бұрын
Must be typo there he must add e1.sal for employee salary and check for manager salary. Same issue with hiredate
@ShubhamMahawar_Dancer_Actor
@ShubhamMahawar_Dancer_Actor 3 жыл бұрын
Yes he has printed the salary and hiredate of manager not the employees he might said wrongly cz e2.sal and e2.hiredate
@malipeddiprathishreddy288
@malipeddiprathishreddy288 3 жыл бұрын
AT 5:06 you said the salary of scot and ford is 2975 but it is Jones salary and the salary of scot and ford is 3000, then the employee scot and ford having a salary of 3000 which is greater than the manager jones. So, please check it.
@ShubhamMahawar_Dancer_Actor
@ShubhamMahawar_Dancer_Actor 3 жыл бұрын
Yes he has printed the salary and hiredate of manager not the employees he might said wrongly cz e2.sal and e2.hiredate
@jayakavya29
@jayakavya29 3 жыл бұрын
👏🏻👏🏻👏🏻👏🏻👏🏻very nice explanation....
@sridhar6358
@sridhar6358 3 жыл бұрын
can we have e1.sal inplace of e2.sal in this explanation
@Shareit_to_growit
@Shareit_to_growit 2 жыл бұрын
Another example we can consider as "select employee name and employee id who are having atleast 2 employees directly reporting to them"
@aakashjadhav6242
@aakashjadhav6242 Жыл бұрын
This was asked to me in recent interview, I could not answer this and I failed
@abhinaygupta8243
@abhinaygupta8243 6 ай бұрын
@@aakashjadhav6242 select ename from (select ename, count(*) over (partition by mgr) cnt from emp order by cnt) where cnt >2;
@vishalgaurav8222
@vishalgaurav8222 5 жыл бұрын
here all the 7 employees and their managers' name can be displayed through the query:select a.ename,b.ename as mgrname from emp a left join emp b on a.mgrid=b.empid
@piyushmanglani6471
@piyushmanglani6471 2 жыл бұрын
The point of this video is why there is a self join. Not finding out the most optimal way to get what is needed. So my point is your comment is useless.
@satyamsamala466
@satyamsamala466 2 жыл бұрын
Thanks for the video...
@vishnujatav6329
@vishnujatav6329 2 жыл бұрын
You are using WHERE clause, and you caption the video as SELF JOIN??
@GelectiousDroid
@GelectiousDroid 2 жыл бұрын
Jatav bhai ye self join hi hai
@harbanskaur4240
@harbanskaur4240 3 жыл бұрын
Confusing
@GelectiousDroid
@GelectiousDroid 2 жыл бұрын
Because he didn't explain briefly
@nikitabhattad9940
@nikitabhattad9940 4 жыл бұрын
Display country name,city,and number of departments where department has more than 5employees
@jaswindersingh-zh8qr
@jaswindersingh-zh8qr 3 жыл бұрын
use group by with having clause
@hemantbhatt1486
@hemantbhatt1486 3 жыл бұрын
Explaining good PLEASE SLOOOOOOW SLOOOW DOWN TALKING DUDE
@vallr-humans9121
@vallr-humans9121 Ай бұрын
You can adjust play back speed
@ramaraja6600
@ramaraja6600 2 жыл бұрын
Video is blurry
@kupendrapola7186
@kupendrapola7186 3 жыл бұрын
this is the best explanation for self join I have ever seen
@jaswindersingh-zh8qr
@jaswindersingh-zh8qr 3 жыл бұрын
thanks bro
@nikitabhattad9940
@nikitabhattad9940 4 жыл бұрын
This question is from hr schema
Left Join | Ep-11 | Top 20 SQL Interview Questions | GeeksforGeeks
3:07
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Inner Join | Ep-9 | Top 20 SQL Interview Questions| GeeksforGeeks
6:52
The 25 SQL Questions You MUST Know for Data Analyst Interviews
32:47
KSR Datavizon
Рет қаралды 250 М.
IQ15:  6 SQL Query Interview Questions
20:14
The Coding Interview
Рет қаралды 2,2 МЛН
Fresher Mock Interview SQL | Technical Round | SQL Interview for Fresher | HR Interview
14:50
Lotus IT Hub training institute
Рет қаралды 108 М.