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-um6gf8 ай бұрын
Must be typo there he must add e1.sal for employee salary and check for manager salary. Same issue with hiredate
@ShubhamMahawar_Dancer_Actor3 жыл бұрын
Yes he has printed the salary and hiredate of manager not the employees he might said wrongly cz e2.sal and e2.hiredate
@malipeddiprathishreddy2883 жыл бұрын
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_Actor3 жыл бұрын
Yes he has printed the salary and hiredate of manager not the employees he might said wrongly cz e2.sal and e2.hiredate
@jayakavya293 жыл бұрын
👏🏻👏🏻👏🏻👏🏻👏🏻very nice explanation....
@sridhar63583 жыл бұрын
can we have e1.sal inplace of e2.sal in this explanation
@Shareit_to_growit2 жыл бұрын
Another example we can consider as "select employee name and employee id who are having atleast 2 employees directly reporting to them"
@aakashjadhav6242 Жыл бұрын
This was asked to me in recent interview, I could not answer this and I failed
@abhinaygupta82436 ай бұрын
@@aakashjadhav6242 select ename from (select ename, count(*) over (partition by mgr) cnt from emp order by cnt) where cnt >2;
@vishalgaurav82225 жыл бұрын
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
@piyushmanglani64712 жыл бұрын
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.
@satyamsamala4662 жыл бұрын
Thanks for the video...
@vishnujatav63292 жыл бұрын
You are using WHERE clause, and you caption the video as SELF JOIN??
@GelectiousDroid2 жыл бұрын
Jatav bhai ye self join hi hai
@harbanskaur42403 жыл бұрын
Confusing
@GelectiousDroid2 жыл бұрын
Because he didn't explain briefly
@nikitabhattad99404 жыл бұрын
Display country name,city,and number of departments where department has more than 5employees
@jaswindersingh-zh8qr3 жыл бұрын
use group by with having clause
@hemantbhatt14863 жыл бұрын
Explaining good PLEASE SLOOOOOOW SLOOOW DOWN TALKING DUDE
@vallr-humans9121Ай бұрын
You can adjust play back speed
@ramaraja66002 жыл бұрын
Video is blurry
@kupendrapola71863 жыл бұрын
this is the best explanation for self join I have ever seen