SQL SELF JOIN | UNION & UNION ALL in SQL | SQL Tutorial in Hindi 12

  Рет қаралды 148,957

Rishabh Mishra

Rishabh Mishra

Күн бұрын

Пікірлер: 101
@kauraman6991
@kauraman6991 11 ай бұрын
I always struggled to understand joins . Thanks for explaining in such a great way 🙂
@NismaKashif
@NismaKashif 12 күн бұрын
Thank You, Sir, for best explanation technique.
@RishabhMishraOfficial
@RishabhMishraOfficial 12 күн бұрын
Glad you liked ✅️
@AshishTiwari-ug2lg
@AshishTiwari-ug2lg 4 ай бұрын
I was looking for a Hindi guy who can teach the SQL in very normal way. finally i found you Brother. the way of you teaching is simply awesome and Thanks for the video Man.
@RishabhMishraOfficial
@RishabhMishraOfficial 3 ай бұрын
Glad you liked ✅️
@kumarishanupriya3733
@kumarishanupriya3733 Ай бұрын
Thank you so much sir 🙏 for the good explanation
@RishabhMishraOfficial
@RishabhMishraOfficial Ай бұрын
Glad you liked ✅️
@kiddosknowledgewizbyakshit9954
@kiddosknowledgewizbyakshit9954 4 ай бұрын
Really in a simple language you have explained these important topics... Thanks a lot( Although I have researched many tutorials but couldn't find this kind of crystal clear explanation)
@warriorspartan1697
@warriorspartan1697 Жыл бұрын
I have been trying to understand self join for quite a long time, but your illustration @04:05 leaves no doubt anymore. Thank you very much Sir.
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Glad it was helpful! ✅️
@GauravSharma-xp5gf
@GauravSharma-xp5gf Жыл бұрын
Sir you give the best explanations, keep doing this. I had searched a lot for this kind of videos 👍
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Glad you liked it 👍
@urbanpahadihiker8672
@urbanpahadihiker8672 Жыл бұрын
Dear sir , Why we are taking , what is the reason behind ???? (On T2.empid = T1.manager_id ) Instead of (On T1.empid = T2. Manager_id)
@ReelgramJams-vm3ug
@ReelgramJams-vm3ug Жыл бұрын
thats the same problem i have, nobody tells u about this
@ReelgramJams-vm3ug
@ReelgramJams-vm3ug Жыл бұрын
if apko reason pta chla ho toh pls btana
@dipannitadas6339
@dipannitadas6339 Жыл бұрын
Yes we can use T1. Empid = T2. ManagerID. Then in select part we need to put 'select T1. Empname As Manager Name , T2. Empname As Employee Name.... '
@iamsatyamjha
@iamsatyamjha 8 ай бұрын
In the given SQL query for a self-join, you have chosen to join the EMP table with itself using the condition ON T2.EMPID = T1.MANAGERID. This means you are joining the table on the employee's ID (EMPID) matching with the manager's ID (MANAGERID). The reason for this choice is to establish a hierarchical relationship between employees and their managers. By using T2.EMPID = T1.MANAGERID, you are retrieving rows where the EMPID of one record (representing an employee) matches the MANAGERID of another record (representing the manager). This way, you can identify the managers of each employee. If you were to use ON T1.EMPID = T2.MANAGERID, it would imply a reverse relationship where you are trying to match employee IDs with the manager's ID. This might not provide the desired hierarchical structure, as it would indicate employees who manage other employees. In most organizational structures, employees report to managers, so it makes more sense to use T2.EMPID = T1.MANAGERID for a self-join in this context. In summary, the choice of ON T2.EMPID = T1.MANAGERID is appropriate for representing the relationship between employees and their respective managers.
@Aayatq
@Aayatq Жыл бұрын
This is wonderful. Thank you for your help.
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Glad you liked it ✅️
@atishalikhar6746
@atishalikhar6746 17 күн бұрын
Even gate smasher can't made me understand this smooth that you done
@RishabhMishraOfficial
@RishabhMishraOfficial 15 күн бұрын
glad you liked it! :)
@labdhibavishi2430
@labdhibavishi2430 6 ай бұрын
Thank you so much sir. best explanation ever.
@RishabhMishraOfficial
@RishabhMishraOfficial 6 ай бұрын
Glad you liked ✅️
@padhaidotcom9276
@padhaidotcom9276 Жыл бұрын
could you please sir, repeat this class once more i am very confused to this class, i didn't understood difference
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Okayy noted ✅️
@avneeshyashika_official
@avneeshyashika_official Ай бұрын
Heyy riahabh jo apne union krwaya mai actually oracle m krti hu to mujhe 2no ka hi same op mila
@pooja1899
@pooja1899 Ай бұрын
Thank you for clear the confusion
@vishaluniverse66
@vishaluniverse66 Жыл бұрын
jioooo. Kya example diye ho, sb clear ho gya..❣
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Glad you liked it ✅️
@M_gaming992
@M_gaming992 6 ай бұрын
aren sir g love you ho geya kiya hi badiya smja diya apna tu
@rohitbhandare7376
@rohitbhandare7376 Жыл бұрын
Great Work Thank you.!
@dipannitadas6339
@dipannitadas6339 Жыл бұрын
Bohot ache se samjhaye sir. Thank you.
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Glad you liked ✅️
@vishu3040
@vishu3040 Жыл бұрын
Thank you sir Thanks a lot You explain in better way 🤩😍😘😘
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Glad you liked it ✨️
@Khan-mc3gi
@Khan-mc3gi Жыл бұрын
sir great video and easy to explain by you sir how to apply sql project in power bi for example if i find who customer most purchase made so sir how i visualize this in power bi visualization to show who customer make most of purchase by company there is any video u make pls share if u make
@rajikkhan8825
@rajikkhan8825 11 ай бұрын
Sir your explanation is very good . Thanks
@RishabhMishraOfficial
@RishabhMishraOfficial 11 ай бұрын
Glad you liked ✅️
@cybershrajal
@cybershrajal 8 ай бұрын
randomly scroll kar raha the achanak se aapki video aa gayi. paper acha gaya
@RishabhMishraOfficial
@RishabhMishraOfficial 8 ай бұрын
Awesome, glad it was helpful ✅️
@RishiRap
@RishiRap 11 ай бұрын
self join totally incomprehensible. You need to elborate MORE on Self join.
@radhikateli
@radhikateli 2 ай бұрын
Rest everything i understood except self join...lil bit confusing.. Rishab sir your teaching is awesome. Please explain the concept of self join in detail
@kharedeeksha17
@kharedeeksha17 Жыл бұрын
very well explained
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Glad you liked ✅️
@mahendraprajapati9809
@mahendraprajapati9809 Жыл бұрын
Very nice Rishabh, very simple way, thank you very much for this. Can you please make more advance videos on MS ACCESS DATABASE VBA
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Okayy noted
@avanendrasharma8244
@avanendrasharma8244 Жыл бұрын
On question sir In Self join after on could it not be written like t2.emp_id=t1.manager_id or t1.emp_id = t2.msnsger_id
@ankitpurshottam3442
@ankitpurshottam3442 16 күн бұрын
good
@RishabhMishraOfficial
@RishabhMishraOfficial 15 күн бұрын
Thanks
@sunilsaini6299
@sunilsaini6299 5 ай бұрын
3:25, Agar Join likte h to Self Join consider hota h bymistake u said Inner Join
@arjunbhasin8302
@arjunbhasin8302 5 ай бұрын
INNER hota hai
@sonuamlani8516
@sonuamlani8516 Жыл бұрын
Hi Rishabh, @ 03:23, you mentioned when we write just JOIN it is considered as INNER JOIN. I think you mean to say SELF join correct ?
@RishuPuri
@RishuPuri Жыл бұрын
nope, he said if we simply write JOIN it will considered as inner join, we have to write the same table_name again as t2 for self join...
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
@RishuPuri yes that's correct!
@Sankiengineer
@Sankiengineer 4 күн бұрын
Great
@RishabhMishraOfficial
@RishabhMishraOfficial 23 сағат бұрын
Glad you liked ✅️
@pareekshitraiyakwar4937
@pareekshitraiyakwar4937 Жыл бұрын
Respected sir, can you PLEASE make a video on the topic of... EQUI & NONEQUI JOIN
@dsa_tutorial
@dsa_tutorial 2 ай бұрын
Mindblowing keep going .
@user-vp1yk6dj9p
@user-vp1yk6dj9p Ай бұрын
sir ,agr 3,4 table diye ho toh sbko join krna jruri hai yaa use case k hisaab se join krna hota h?
@user-lm5wb8vi1x
@user-lm5wb8vi1x 5 ай бұрын
This dataset is not present ,Kindly update this file for practice which is valuable otherwise we have to manually create it.I hope u can understand
@IMRANANSARI-yo1mm
@IMRANANSARI-yo1mm Жыл бұрын
Sir, what's the difference between inner join and union join as i feel it is similar. Further more, for union join all the headers of both the table should be similar?
@rivughosh4814
@rivughosh4814 11 ай бұрын
Isn't union uses two tables and inner join is with in same table?
@sandeepkumarnishad8009
@sandeepkumarnishad8009 8 ай бұрын
great explanation for ever
@neelamgaikwad9809
@neelamgaikwad9809 8 ай бұрын
Hi rishab yeh 4:08 timestamp pe T2 kyu pehle lia hai... Why not T1.empid = T2 manager_id??
@nabinbist1220
@nabinbist1220 Жыл бұрын
Sir Normalization ke video vi banao like it
@neilagarwal9698
@neilagarwal9698 Ай бұрын
what is the difference between union clause and full outer clause
@SnehaKumari-e4l
@SnehaKumari-e4l 8 ай бұрын
best🎉🎉
@shashanksingh5084
@shashanksingh5084 4 ай бұрын
are you Vaishnava?? because you are taking the name of prominent 6 Goswami of vrindavan?
@ShivamMishra-dh7zx
@ShivamMishra-dh7zx 2 ай бұрын
Glad someone noticed.
@Digital_Ego
@Digital_Ego Жыл бұрын
Gr8 video
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
Glad you liked it ✅️
@jiatxtmoa7434
@jiatxtmoa7434 3 ай бұрын
What is the difference between full outer join and union
@rizwan1396
@rizwan1396 3 ай бұрын
It means union all is same as full outer join?
@user-lm5wb8vi1x
@user-lm5wb8vi1x 5 ай бұрын
Finished watching
@RishabhMishraOfficial
@RishabhMishraOfficial 5 ай бұрын
Awesome, keep learning n keep growing 🚀
@deepankarsaxena4636
@deepankarsaxena4636 2 ай бұрын
Select All ❌ Select Star ❌ Select Sab Kuch ✅
@gate2ece357
@gate2ece357 2 ай бұрын
Bhaiya, mai UNION likha toh b 5 rows a raha hai .. aisa kyun zara bataiyega. Madan Mohan ka 2 bar nama a raha hai .
@RishabhMishraOfficial
@RishabhMishraOfficial 2 ай бұрын
Agar sari values same hogi tabhi vo duplicate hoga. You can try only select Name column to check of there are still duplicate values or not.
@imanjabbar5433
@imanjabbar5433 4 ай бұрын
what if dont use aliases why it is not working without using aliases
@RishabhMishraOfficial
@RishabhMishraOfficial 4 ай бұрын
It should work, check the syntax n table n column names
@Cricstory0108
@Cricstory0108 Ай бұрын
Self join run nahi ho raha ha
@moh.editzz
@moh.editzz 4 ай бұрын
hello sir ,in my workbanch do not work "full outer join" sir plzz solved lots of problem.🙏🙏🙏
@mahendrapandit8606
@mahendrapandit8606 9 ай бұрын
Hii sir good morning your video is very well explaind sir data science regarding aapse bat karni h please tell me aapse contact kaise kru thank you
@abhinavsharma9178
@abhinavsharma9178 5 ай бұрын
Shad Goswami vrinda ko jai
@ShivamMishra-dh7zx
@ShivamMishra-dh7zx 2 ай бұрын
Glad someone noticed
@makarsh29
@makarsh29 Жыл бұрын
bhai y union mysql m run nhi kr rha
@g.sproduction1674
@g.sproduction1674 Жыл бұрын
Sql me kisi bhi file ko import kaise karte hai iske liye video bna dijiye
@RishabhMishraOfficial
@RishabhMishraOfficial Жыл бұрын
already uploaded, watch video- create table in sql
@DeadlyGaming407
@DeadlyGaming407 6 ай бұрын
what if name is same but amount is differnt and we did union ??
@RishabhMishraOfficial
@RishabhMishraOfficial 6 ай бұрын
Then it's not a duplicate
@mukeshdhoni0786
@mukeshdhoni0786 5 ай бұрын
Sit table 2 banta hai naa isme ya ekhi table se ho jayega
@user-vp1yk6dj9p
@user-vp1yk6dj9p Ай бұрын
I think ,ek hi table se hota h
@Altaf_Alam
@Altaf_Alam 2 ай бұрын
@archanarkumar9754
@archanarkumar9754 2 ай бұрын
Why T1 and T2 ? Table to ek hi hai
@Batistabrockbombf5
@Batistabrockbombf5 7 ай бұрын
Union karte tim madan mohan to nahi aana chaiye tha. ye name to dono table me hai to union sirf unique values leta ha. can anyone explain???
@wasilkhan2507
@wasilkhan2507 7 ай бұрын
union takes all the values from both the tables and show only unique values in output.
@syedarshad9028
@syedarshad9028 5 ай бұрын
Select sab kuch😂
@Bloging-yadav
@Bloging-yadav 3 ай бұрын
Ye work Nahi kr raha hai
@galgotianhelper610
@galgotianhelper610 Жыл бұрын
😊
@Digital_Ego
@Digital_Ego Жыл бұрын
Python ???
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 18 МЛН
Whoa
01:00
Justin Flom
Рет қаралды 59 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Group By and Having Clause in SQL | SQL Tutorial in Hindi 9
10:37
Rishabh Mishra
Рет қаралды 189 М.
you need to learn SQL RIGHT NOW!! (SQL Tutorial for Beginners)
24:25
NetworkChuck
Рет қаралды 1,5 МЛН
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 75 М.
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 18 МЛН