JOINS IN SQL (with example )

Поділитися
Вставка
  • Опубліковано 13 жов 2024
  • If you need personal help in SQL, Mock interviews, You can contact me on work.sadiasiddiqui@gmail.com, Please note it will be a paid.
    ✨Work related mails can be sent on:
    work.sadiasiddiqui@gmail.com
    ✨If you appreciate my work and would like to donate to support our channel, you can do so here:
    paypal.me/sadi...

КОМЕНТАРІ • 267

  • @crackconcepts
    @crackconcepts  Рік тому +3

    ✨Link to my SQL e-book: imojo.in/rkajq9
    ✨Link to 'Switch your career easily' e-book: imojo.in/1FL7KaG
    (Perfect for anyone willing to switch to a completely new field or to a different company in the Tech World)

  • @hachinyesom1343
    @hachinyesom1343 2 роки тому +9

    you just gained a subscriber, been having difficulties understanding the JOIN CLAUSE , Thank you

  • @harshasatya2597
    @harshasatya2597 2 роки тому +4

    i came all the way from w3 schools to understand join operation and i find the right one thanks a lot...

  • @hemanths5570
    @hemanths5570 4 роки тому +61

    Voice...👌 Concept...👌👌

    • @rsarveshr5773
      @rsarveshr5773 2 місяці тому +4

      Lesson learned ...👌 Hitting on the girl...👌👌

    • @motive02
      @motive02 Місяць тому +1

      Even here Flirting 😏😂

  • @Abhishek-Khelge
    @Abhishek-Khelge 4 роки тому +19

    this few mins videos cleared all doubt, thank you

  • @afzalahmad9015
    @afzalahmad9015 3 роки тому +12

    her voice is so soothing
    well explained

  • @richiereji
    @richiereji 4 роки тому +94

    Great explanation!! The concepts were easy to understand for a beginner like me.

    • @chandu4764
      @chandu4764 2 роки тому

      Bro.. did you have learned plsql now..
      If yes.. suggest me utube channel bro plz

  • @majjigapuridhisrireddy4682
    @majjigapuridhisrireddy4682 2 роки тому +1

    Got a good clarity on joins after watching this video, thank you

  • @harshapamulaparthi1491
    @harshapamulaparthi1491 3 роки тому

    Correct me if I'm wrong
    Here left table is customers and right table is orders
    But in explanation you have references as left table as orders and right table as customers

    • @antivenom6747
      @antivenom6747 3 роки тому +1

      Left table will be table that's next to 'From' and Right will be table after 'join' clause.

  • @paramvirsohi5922
    @paramvirsohi5922 2 роки тому

    The bestest explanation on internet for joins

    • @rsarveshr5773
      @rsarveshr5773 2 місяці тому

      Bestest comment on the comment box

  • @paulanirban8888
    @paulanirban8888 3 роки тому +5

    Thanks for explaining it in such a simplified manner. This is really helpful.

  • @AshishKumar-px3tj
    @AshishKumar-px3tj 3 роки тому +4

    Thank you so much for clearing all doubt😊

  • @sameerchhetri6757
    @sameerchhetri6757 2 роки тому +1

    Amazing work the way you told is excellent !!!

  • @neighmashele
    @neighmashele Рік тому

    you are a blessing!! thank you very much for this channel

  • @ManvendraSingh-xh2ry
    @ManvendraSingh-xh2ry 2 роки тому +2

    Very very simple and crisp explanation... Wish I can understand everything like this

  • @rahulmistri1997
    @rahulmistri1997 4 роки тому +14

    Great video and well paced . Just a suggestion after explanation do a small code walkthrough of the same concept as that would be giving the whole picture to someone who's new to the subject.

  • @ujjwalbhardwaj5595
    @ujjwalbhardwaj5595 3 роки тому +3

    Nicely and briefly explained ! type of video i was looking for ! Thanks

  • @priyankadevarapalli7295
    @priyankadevarapalli7295 4 роки тому +14

    Great explanations, concept is very much clearly explained.....but it would be even more helpful for beginners if u include "what will be the output or result for self join".
    Hope u will add it in video next time.
    Thanks in advance.

  • @ayushikarn1893
    @ayushikarn1893 3 роки тому +2

    The real catch is when there are repeated values in one or many table.. great explanation

  • @adityanaidu9388
    @adityanaidu9388 3 роки тому +6

    This video has simply cleared my all doubts which was there in my mind for past 4 years! Thankyou your efforts needed to be appreciated ...Kudos

  • @acadroit
    @acadroit 4 роки тому +6

    The joins in sql were haunting me from past 3 days. I have watched many videos but none helped. Thank you so much mam for such a lucid explanation. I want to know how can I excel in SQL. I want to become a database administrator. Please guide me. And if I can contact you or your teammates. Please guide me that also.

    • @sivasu07
      @sivasu07 3 роки тому +1

      Bro just put query and practice more

  • @madhuri.t494
    @madhuri.t494 3 роки тому +2

    crisp and clear 👍good work!

  • @codesnack3606
    @codesnack3606 4 роки тому +1

    Easy, Short And comprehensive explanation....on point

  • @Infanuu
    @Infanuu 3 роки тому +6

    sizzy yuh deserve for oll lyfz❤️
    worth oll lectures🔥🎉

  • @MdSameer-df3xj
    @MdSameer-df3xj 8 місяців тому

    A good example of a table....great explanation

  • @nareshnaidu8759
    @nareshnaidu8759 4 роки тому +4

    U r givining clear explanation
    I will easily understood

  • @gowrig9742
    @gowrig9742 3 роки тому +3

    Hi, for self join SELECT E.name FROM Employee E, Employee M WHERE E.emp_id=E.manager_id; will it work same as ur example? Please explain..

  • @badrisudha8922
    @badrisudha8922 2 роки тому +1

    I love your way of teaching with deep explanation sister... thank you so much

  • @rishupawar2233
    @rishupawar2233 3 роки тому +1

    Your sequence of videos in playlist is not right plz make it right for easy undestanding👍

  • @curoisitywithfun4493
    @curoisitywithfun4493 4 роки тому +15

    Can I donate u sis I really encourage your work

    • @crackconcepts
      @crackconcepts  4 роки тому +10

      Hey. Thanks for considering. Means a lot. But it's fine 😊

    • @memeshots6191
      @memeshots6191 3 роки тому +3

      Ghnta !! I mean she teaches really well but don't try to get her in conversation with you

    • @panyammahesh5697
      @panyammahesh5697 3 роки тому

      Please do video on date functions in sql

  •  3 роки тому

    Waah, self join is the thing where I was confused. Thanks for the video. 🙂🙂

  • @seetsamolapo5600
    @seetsamolapo5600 2 роки тому +1

    Inner join = where their entities link (via some action - how many links = how many rows in resultant table)

  • @priyanshukhare6969
    @priyanshukhare6969 4 роки тому +1

    Correction: in last example of self join "pqr" will be printed

  • @technicalknowledge5678
    @technicalknowledge5678 4 роки тому +6

    Thankyou for making these videos 🔥.. good for interview preparation 👍

  • @u.r.9706
    @u.r.9706 3 роки тому

    hi, thanks for the tutorial, it was very helpful. "The last example you gave about self join in order to find out same id values, can we not simply just add a where clause stating "WHERE emp_id = manager_id" in order to retrieve the same value?

    • @k.h.6991
      @k.h.6991 3 роки тому

      No, because an employee is usually not their own manager. You could replace the join with a subquery in where, but you'd still have to reference the same table. And I guess it would be slower (because joins are fast).

  • @rakshitah8419
    @rakshitah8419 3 роки тому

    Thank you so much.. Clearly explained, and your voice is soothing

  • @hiranyeypriya2178
    @hiranyeypriya2178 4 роки тому +6

    simple and well explained example! thanks!!

  • @jdsagar7547
    @jdsagar7547 6 місяців тому

    Thank you , its so simple and clear

  • @chinnichinni7055
    @chinnichinni7055 3 роки тому +1

    How to get the details of first table which are not available in second table

    • @manikhantayema2395
      @manikhantayema2395 3 роки тому

      I thnk u can use except command.i also dnt I thnk just

  • @kaptures__
    @kaptures__ 2 роки тому

    far better than edrueka sql join video.

  • @mohon145
    @mohon145 3 роки тому +2

    How can I determine which one is the left table and right table?

    • @himanshusoni9035
      @himanshusoni9035 3 роки тому

      Table on left while using join keyword is left and right to join keyword is right

  • @harivadlapalli6134
    @harivadlapalli6134 2 роки тому

    Chala baga Explain chesaru MADAM, Thanks for your explanation Madam

  • @williamsantosh5803
    @williamsantosh5803 3 роки тому +1

    Thanks for the short and clear explanation on this topic.

  • @prathishbysani5749
    @prathishbysani5749 3 роки тому +1

    can we perform operation like left join on 2 tables each table consists single column?

  • @RichardPeterShon
    @RichardPeterShon 2 роки тому

    Natural born instructor. Thank you. Subed n liked.

  • @suryas8407
    @suryas8407 9 місяців тому

    Thank you for explaining very clearly.

  • @sanigopichand1928
    @sanigopichand1928 3 роки тому +1

    Super explanation. I watched many videos to understand this topic . U nailed it .Tq 😘

  • @ukeshwaran2666
    @ukeshwaran2666 3 роки тому

    What happens if I don't use ON Statement in this join clause?
    If orders and customers have 196 and 91 in number respectively.
    And if I don't use ON
    I got 196*91 records.
    But I cannot understand what really happens. In what logic will they combine?
    Can you clear my doubt

  • @ashokbhum06
    @ashokbhum06 Рік тому +1

    Hi.. great video...can we request for a example with blank values

  • @erumfatima179
    @erumfatima179 2 роки тому

    How did you know that ORDER table is left table? I can consider CUSTOMERS also as left. Also in the video left table seems for customers not the order but you are saying order is the left table, how? Please explain

  • @keertig8932
    @keertig8932 2 роки тому

    Great explanation for beginner to lean sql.please share vedios for how to learn complex queries.

  • @reetuchoudhary890
    @reetuchoudhary890 Рік тому

    U made it so simple. Thanks

  • @techninja9461
    @techninja9461 3 роки тому +2

    Excellent Explanation. amazing and soothing voice.✨✨✨✨. keep making these kind of videos , really helpful.💖

  • @sheetalmendgudli6795
    @sheetalmendgudli6795 3 роки тому

    Very nice explaination.... anyone can understand easily by watching your video.... thank you

  • @varunsharma2507
    @varunsharma2507 3 роки тому

    You have a lovely voice...and thnx for clearing my doubts!💫🙇💐

  • @flameyt3721
    @flameyt3721 2 роки тому +1

    WHEN USING OUTER JOIN,YOU MUST EXPLICITLY STATE THAT YOU WANT EITHER A LEFT JOIN OR A LEFT JOIN IT'S TRUE OR FALSE STATEMENT PLEASE REPLY

  • @prathameshpendal6899
    @prathameshpendal6899 3 роки тому +2

    Great explaination... Easily understood Thank you so much

  • @mdhelal7061
    @mdhelal7061 3 роки тому +1

    Sweet voice along with good explanation..............

  • @hemanathrajendran7581
    @hemanathrajendran7581 4 роки тому +3

    You gave us simple explanation on joins , thank you so much :)

  • @lateshpatil9262
    @lateshpatil9262 2 роки тому

    every thinks great explained but self join wherever write a code that time no used inner join word that replace self join

  • @nitus4411
    @nitus4411 3 роки тому

    I started following your videos. Your explanation made me easy to understand. I hope this will help me for interview questions too...Thank you so much...!

  • @paramvirsohi5922
    @paramvirsohi5922 3 роки тому

    Best explanation with simple table

  • @gouravm4986
    @gouravm4986 4 роки тому +2

    Thank you mam💞 saved my practical viva

  • @mallireddy8721
    @mallireddy8721 2 роки тому

    thanks mam, easy understanding and perfect examples.

  • @amanbhargavaofficial
    @amanbhargavaofficial 2 роки тому +1

    Thank you Sadia

  • @shakiraafshan6544
    @shakiraafshan6544 3 роки тому

    hi sadiya, what is the difference between equi join and inner join? plz reply

  • @pavanipinnaka8338
    @pavanipinnaka8338 3 роки тому

    Brillient explanation. I understood the concept now. Thankyou.

  • @beharakanna
    @beharakanna 4 роки тому +1

    Can you please show the demo on the system...

  • @muhammadumair5019
    @muhammadumair5019 5 років тому +2

    Please make video for Procedures, Triggers, Views , functions

    • @crackconcepts
      @crackconcepts  4 роки тому +1

      I have made. Please check them out 😊

  • @AkashSingh-pj7or
    @AkashSingh-pj7or 2 роки тому +1

    why in one table in inner join cust_id and 2nd table only id ,it must be cust_id, becos one column must be common

    • @crackconcepts
      @crackconcepts  2 роки тому

      Not necessary. Column names can be different

    • @AkashSingh-pj7or
      @AkashSingh-pj7or 2 роки тому

      @@crackconcepts then on what basis they are joined, leave it mysql ,let us take two building if you want both building then they must have common thing like both are of same company somthing else common other wise what use of join

    • @suchishrivastava5912
      @suchishrivastava5912 2 роки тому

      ua-cam.com/video/DObZFQ-Q5FQ/v-deo.html

  • @MakersAlly
    @MakersAlly 19 днів тому

    Superb explanation, keep it up for more concepts.

  • @Crazyanya_
    @Crazyanya_ 2 роки тому

    thank you so much after watching to many videos i find perfect one nice explanation in practical way

  • @ajitbhalerao164
    @ajitbhalerao164 3 роки тому

    Wow this explanation is one of the best!!

  • @bikashmukherjee3652
    @bikashmukherjee3652 2 роки тому +1

    Thank you

  • @pranavgambhirrao8574
    @pranavgambhirrao8574 4 роки тому +1

    Nice explanation. & Please create a video on Indexes and Normalisation in SQL. Thank you🙂

  • @abhishekv8093
    @abhishekv8093 2 роки тому

    Super. Oh god I saw lot of videos but ur explanation helped me understand the concept. 🙏🙏

  • @naveenchowdary7098
    @naveenchowdary7098 4 роки тому +4

    Thank you for ur nice explanation 👍

  • @Umairkhan-ou3rd
    @Umairkhan-ou3rd 9 місяців тому

    One Question is that how to determined which table side right table or Left table.

  • @labhibhati5554
    @labhibhati5554 3 роки тому

    In self join example, name will be printed ryt??
    Or emp_id?

  • @rachanasri2344
    @rachanasri2344 4 роки тому +1

    Why designation and amount is not included in the output table?

    • @akshaygadavey1070
      @akshaygadavey1070 3 роки тому

      Because in select query it doesn't have those column's names

  • @arvindraja9069
    @arvindraja9069 3 місяці тому

    Mam I have doubt that is If order table is used before 'on' clause what will happen mam?

  • @rahulx9a
    @rahulx9a 2 роки тому +1

    Great explanation, easy to follow for beginners

  • @aayushisoni4009
    @aayushisoni4009 3 роки тому

    can you please make a video over other joins like theta join , equijoin, cross and natural join

  • @rohitsailas4028
    @rohitsailas4028 2 роки тому

    Thank you for a clear and concise explanation

  • @divymeher5239
    @divymeher5239 3 роки тому +2

    This was a great video
    Keep making such videos
    Subscribed👍👍

  • @Zoeyyy29
    @Zoeyyy29 7 місяців тому

    It clears my everything related to SQL 😭 u r great❤

  • @sneha7043
    @sneha7043 3 роки тому

    How will be the output table looks in self join? Pls answer this question

  • @adityarastogi3483
    @adityarastogi3483 2 роки тому

    Thanks a lot ! it really helped..keep it up :)

  • @shravankatta4171
    @shravankatta4171 3 роки тому

    can not write like "Select Name From Tablename where EmployeeId = ManagerID" insted of self join

  • @sriharikatari4935
    @sriharikatari4935 3 роки тому

    very good simple explanation

  • @geoafrikana
    @geoafrikana 3 роки тому +1

    Nice video. Clarified the concept. I won't say a thing about the voice.🤗

  • @balachandrudu2168
    @balachandrudu2168 2 роки тому

    Good explanation I never see this type explanation keep it up

  • @vaishnavis9473
    @vaishnavis9473 2 роки тому

    Huge thanks to you ❤

  • @govardhanindian
    @govardhanindian 4 роки тому

    Mam , can you give syntax for more than 2 tables of full outer join.

  • @indianvloggerswara7669
    @indianvloggerswara7669 3 роки тому

    Very nice explanation for the beginner 👍

  • @saivenkatdawadi9935
    @saivenkatdawadi9935 3 роки тому +3

    Your voice makes understanding concepts easier 😍. Thank you Mam.

  • @mohit2942
    @mohit2942 3 роки тому +1

    natural join?

  • @pratikkulkarni4929
    @pratikkulkarni4929 2 роки тому

    Thank you sadiya superb explanation 👏👏💐💐

  • @sricharanreddy3913
    @sricharanreddy3913 4 роки тому

    can you please tell me how will we know to use which join at what point

  • @priyankadevarapalli7295
    @priyankadevarapalli7295 4 роки тому +1

    "why is it not mentioned as self join in self join and mentioned as inner join?"

    • @geoafrikana
      @geoafrikana 3 роки тому

      Seems it's a slip of tongue