SQL Joins Tutorial for Beginners - Inner Join, Left Join, Right Join, Full Outer Join

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ค. 2024
  • Learn how to create SQL Joins. The first 10 minutes teach you the basics. Inner Join, Left Outer Join, Right Outer Join, and Full Outer Join. The second 10 minutes show you are few techniques that will help you as you start building joins.
    TABLE OF CONTENTS
    00:00 - Intro
    01:10 - INNER JOIN
    04:20 - LEFT JOIN
    07:03 - RIGHT JOIN
    08:35 - FULL OUTER JOIN
    09:36 - Optional OUTER Clause
    10:38 - Alias the Join Tables
    11:22 - Format SQL Join
    11:55 - Filtering SQL Join in WHERE Clause
    12:20 - Filter SQL OUTER Join in ON Clause
    14:40 - Filter SQL INNER Join in ON Clause
    15:30 - RIGHT JOIN can be changed to LEFT JOIN
    READ THE ORIGINAL ARTICLE WITH THE TABLE SCRIPS
    www.sqltrainingonline.com/sql-...
    TH-cam NEWS UPDATES
    / sqltrainingonline
    VISIT SQLTRAININGONLINE.COM FOR TONS MORE VIDEO NEWS & TIPS
    www.sqltrainingonline.com
    SUBSCRIBE FOR OTHER SQL TIPS AND NEWS!
    th-cam.com/users/subscription_c...
    SUBSCRIBE TO OUR EMAIL LIST!
    www.sqltrainingonline.com
    LET'S CONNECT!
    Facebook: / sqltrainingonline
    Twitter: / sql_by_joey
    Linkedin: / joeyblue
    SQLTrainingOnline: www.sqltrainingonline.com
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 556

  • @joeyblue1
    @joeyblue1  3 ปีที่แล้ว +28

    TABLE OF CONTENTS
    00:00​ - Intro
    01:10​ - INNER JOIN
    04:20​ - LEFT JOIN
    07:03​ - RIGHT JOIN
    08:35​ - FULL OUTER JOIN
    09:36​ - Optional OUTER Clause
    10:38​ - Alias the Join Tables
    11:22​ - Format SQL Join
    11:55​ - Filtering SQL Join in WHERE Clause
    12:20​ - Filter SQL OUTER Join in ON Clause
    14:40​ - Filter SQL INNER Join in ON Clause
    15:30​ - RIGHT JOIN can be changed to LEFT JOIN

    • @bridgerenzo6857
      @bridgerenzo6857 2 ปีที่แล้ว

      i dont mean to be offtopic but does any of you know a method to log back into an Instagram account..?
      I was dumb forgot my login password. I would appreciate any assistance you can offer me.

    • @lukalarry7349
      @lukalarry7349 2 ปีที่แล้ว

      @Bridger Enzo instablaster :)

    • @bridgerenzo6857
      @bridgerenzo6857 2 ปีที่แล้ว +2

      @Luka Larry i really appreciate your reply. I found the site on google and im trying it out now.
      Takes a while so I will get back to you later with my results.

    • @bridgerenzo6857
      @bridgerenzo6857 2 ปีที่แล้ว

      @Luka Larry it worked and I now got access to my account again. I am so happy:D
      Thank you so much you saved my account!

    • @lukalarry7349
      @lukalarry7349 2 ปีที่แล้ว

      @Bridger Enzo happy to help :D

  • @momentshub3773
    @momentshub3773 6 ปีที่แล้ว +531

    Man, I watched like 6-7 video tutorials about Join in SQL. Your is the only one that I understood. Great explanation!

  • @diamondDog_629
    @diamondDog_629 6 ปีที่แล้ว +90

    And I thought Joins were advanced concepts in SQL that I'm not yet ready to understand. God bless you Mr. Blue

    • @airstriker4366
      @airstriker4366 4 ปีที่แล้ว

      Create View Transactions AS
      Select tbl_customers.Customer_ID, FirstName, LastName, Address, OrderDate, tbl_payments.Quantity, tbl_product.UnitPrice From tbl_transactions
      INNER JOIN tbl_delivery ON tbl_delivery.Delivery_ID = tbl_transactions.Delivery_ID
      INNER JOIN tbl_customers ON tbl_customers.Customer_ID = tbl_delivery.customer_ID

    • @clhk12
      @clhk12 4 ปีที่แล้ว +5

      @@airstriker4366 print("Weird Flex, but okay...")

  • @PatrickburkeTVComedy
    @PatrickburkeTVComedy 6 ปีที่แล้ว +86

    Great video. The graphic and audio quality made this very easy to learn.

  • @DallasOakCliff
    @DallasOakCliff 6 ปีที่แล้ว +90

    This dude is the Michael Jordan of SQL vids.

  • @vespa731
    @vespa731 6 ปีที่แล้ว +7

    Thank you so much for this video! I've watched so many PowerPoint presentations and lectures and your video was the only one that actually helped me understand joins! Thanks again

  • @danieldouglas3340
    @danieldouglas3340 5 ปีที่แล้ว +14

    Great video! I got a much better grasp on SQL Joins in 18 minutes than I did in my instructor's 2.5 hour lecture. Thank you, sir!

  • @user-bd4wc3oy8m
    @user-bd4wc3oy8m 6 ปีที่แล้ว +37

    I love your pacing. Not too fast or too slow. You're right in the goldilocks zone!

  • @benjaminswindle
    @benjaminswindle 5 ปีที่แล้ว +3

    I just started using SQL yesterday, and I already have a much higher level of understanding than a few of our developers, thanks Joey! Great series of videos!

  • @4realentropyst230
    @4realentropyst230 6 ปีที่แล้ว +2

    Spent an hour reading various tutorials and watching videos on this. Then you saved my nerves.
    This is by far the best and easiest explanation to SQL Joins I've ever seen, I can't thank you enough!

  • @JerodimusPrime
    @JerodimusPrime 5 ปีที่แล้ว +3

    This is the best SQL join explanation I've found on TH-cam. Thanks for your concise and understandable tutorial.

  • @MrBauer73
    @MrBauer73 3 ปีที่แล้ว +1

    Thank you Sir! You have made learning about Joins so simple. I spent hours reading through text books, trying to figure it out, and in less than 20 minutes you succeeded in making it clear to me.

  • @isaacsmoli
    @isaacsmoli 5 ปีที่แล้ว +2

    Congrats, two years later and continuous amazing. I can understand everything with your videos.

  • @SS-bo9re
    @SS-bo9re 3 ปีที่แล้ว +1

    This was hands down the best SQL join tutorial I've ever seen in my life! Keep up the good work!

  • @OffbeatOracle
    @OffbeatOracle 4 ปีที่แล้ว +1

    Joey, all of you videos are super easy to understand. The visuals are great and you do great with the audio level. So many people upload videos where the audio is so low you can't hear it or it sounds like it's recorded in a box. Thanks for doing what you do.

  • @alexandreabarbosa
    @alexandreabarbosa 5 ปีที่แล้ว +11

    Awesome! Straight to the point! Correct and excellent explanation!

  • @ekaterinaslavova2320
    @ekaterinaslavova2320 4 ปีที่แล้ว +5

    Finally a tutorial that made things simple and makes sense! Thank you!

  • @aaronmarks7912
    @aaronmarks7912 6 ปีที่แล้ว

    Just stopping by to tell you - this is a great resource for folks who are new to SQL OR for developers who are trying to level up on SQL skills. Thanks for taking the time to make this!

  • @thejancis38
    @thejancis38 4 ปีที่แล้ว +1

    I always thought this is hard, and I've never tried to learn this. After watching this video and trying it out, it's actually pretty simple and very useful! Thank you!

  • @alexedeigba
    @alexedeigba 6 ปีที่แล้ว +8

    Lovely video Joey. This was quite helpful

  • @halildurmaz7827
    @halildurmaz7827 3 ปีที่แล้ว +4

    Clear tutorial ! I cannot understand why the others make this topic hard to understand :) Especially the tiny tables you use, allows us to clearly observe what is happening

  • @user-zz3qw9nr2p
    @user-zz3qw9nr2p ปีที่แล้ว +2

    This is by far the most helpful video I watched about Joins. So simple and straight to the point.

  • @georgecristianiordan3712
    @georgecristianiordan3712 6 ปีที่แล้ว +2

    great man we owe you a lot, great explanations, great teacher!!!First I was learning without the app installed and I couldn't understand a thing, then I installed the Microsoft sql and I learned all your tutorials, I even created those tables that you show them in that video alone to understand better... Your are the best! thanks a lot.

  • @alexpajp123
    @alexpajp123 6 ปีที่แล้ว +6

    Your explanations were very simple. Great video!

  • @violetadyulgerova1446
    @violetadyulgerova1446 4 ปีที่แล้ว +2

    Well after completing two courses on linked in learning and watching like 10 videos on TH-cam, I finally understood how to formulate join query and why do we use that = sign.Thank you so much for the clear, simple explanation!

  • @searez7251
    @searez7251 3 ปีที่แล้ว +2

    As someone has said in the comment section, I have watched several videos to get a good grasp (concept) of the SQL joins, in my opinion this tutorial is the best tutorial I found. Simple, clear and to the point. Many thanks & God bless you!

  • @AmitYadav-hn9rn
    @AmitYadav-hn9rn 4 ปีที่แล้ว +1

    Goodness, he is the only man who makes sense when it comes to explaining confusing joins, really good. Thanks

  • @stianleinaas1638
    @stianleinaas1638 6 ปีที่แล้ว +9

    That was great explanation! Thanks a bunch, Joey! :)

  • @igorsmet1123
    @igorsmet1123 4 ปีที่แล้ว

    Literally the most straightforward video I could find, thank you so much. Now all those joins make perfect sense. 🙌

  • @ahmedsehic9019
    @ahmedsehic9019 6 ปีที่แล้ว +2

    Many people post tutorials that are just confusing, yours is very clear Thanks Joey

  • @bernardcyrus8189
    @bernardcyrus8189 10 หลายเดือนก่อน

    Hands down the BEST SQL tutorial on JOINs that I have seen! Makes clear sense!

  • @markgarrett2971
    @markgarrett2971 2 ปีที่แล้ว

    I have been trying to understand JOINS for the past hour and these 18 minutes broke it down perfectly. Thanks for your clarity!

  • @mgismondo
    @mgismondo 6 ปีที่แล้ว

    I have to agree! After hours of what should be a simple straightforward just simple explanations I FINALLY hit your page! Well done sir!

  • @samsbuzz9272
    @samsbuzz9272 4 ปีที่แล้ว +1

    Thanks Joey..Really a simple and the best way of explaining Joins..The best part was the picture where you have shown putting the real tables in it and explaining it which has made it much more easier.Have tried so many videos to learn the concept but hands down you are the best..

  • @joshuakoni5428
    @joshuakoni5428 4 ปีที่แล้ว

    The Visual representation of the joins as Venn Daigrams helped a lot. Thank you!

  • @nw7us
    @nw7us 4 ปีที่แล้ว

    As so many other people have written, your clear, paced explanation with demonstration really helped me solidify my handle on these basic concepts. I'm subscribing. Thank you for your efforts.

  • @hannav7125
    @hannav7125 3 ปีที่แล้ว

    Thank you Joye your voice is so calm and relaxed to listen too. This is extremely helpful.

  • @mattiekahn4616
    @mattiekahn4616 6 ปีที่แล้ว

    Thank you! This is very helpful in my work. I am truly appreciative to have your videos to go to over and over as I need them!

  • @ZnSstr
    @ZnSstr 4 ปีที่แล้ว

    Finally a dude with a clean microphone, no stupid music and animations. I have been really rusted on sql, since I don't have that much experience either, this helped me a lot and I also learnt something new that you can filter ON clause and also you can use a where after the join.

  • @curlycues4u
    @curlycues4u 6 ปีที่แล้ว +10

    Excellent explanation. Thank you! (Subscribed)

  • @Yegorich
    @Yegorich 5 ปีที่แล้ว +2

    You are brilliant sir! I understood the concept of inner join as soon as your wrote your fist query. Thanks a lot !

  • @lorismiths6951
    @lorismiths6951 5 ปีที่แล้ว

    This was the first video I saw of Joey's SQL series, and I must say I'm hooked. I was going to watch the 1hr beginning video. But, I'm very glad I watched this one first. Extremely helpful and look forward to watching all the videos in the series. Just a tip for anyone who is new to T-SQL (Microsoft) or SQL in general. I would personally practice the JOINS he talks about. And even come back, and watch the video a couple times to really help it stick. Again amazing video thank you!

  • @RandjithKumar
    @RandjithKumar 4 ปีที่แล้ว

    After a long time came here to have a quick glance about joins. videos from other channels was confusing. But your was much clear. Thanks a lot Joe.

  • @CoderSprint
    @CoderSprint 5 ปีที่แล้ว

    Special Salute. I went on with google for hours. In just 8 minutes you cleared all messed up things!!. Great Job. Thank you.

  • @arlenefvivaldi9677
    @arlenefvivaldi9677 5 ปีที่แล้ว +1

    Jesus, Thank You! I've used so many different sources and No one made it as straight forward as did you. Thank you :-)

  • @StefanoVerugi
    @StefanoVerugi 2 ปีที่แล้ว

    One of the best examples of how 15' video beats hours of manuals, lengthy presentations or, God forbid, expensive classes. Much appreciated.

  • @TheChodex
    @TheChodex 5 ปีที่แล้ว

    Thank you for this! Especially how you connected code with picture, made things really clear!

  • @jjones40
    @jjones40 5 ปีที่แล้ว +2

    Good job. Finally... a video that clearly explains this topic. Thanks.

  • @isaacvallejo6333
    @isaacvallejo6333 4 ปีที่แล้ว

    This really helped. From reading to watching other tutorials. This one was broken down perfectly and easy to understand thanks!

  • @Vpzoe
    @Vpzoe 5 ปีที่แล้ว +6

    Read 1-2 paragraphs from 3 different books in 2 mo. on joins. Today I said I'm going to get it. I come home, 18 min later, I'm good. Locked in. THANK-YOU-MR.-BLUE!

  • @randomness3235
    @randomness3235 5 ปีที่แล้ว +3

    Finally, I get it! Thank you, so simple now.

  • @igordjurdjic7380
    @igordjurdjic7380 6 ปีที่แล้ว +2

    Thank you for your great explanation, only this video showed me what each Join do. Bless you

  • @rufinosalgado4126
    @rufinosalgado4126 5 ปีที่แล้ว +1

    The clearest description of joins I've ever seen.

  • @dejasbeautyxoxo1361
    @dejasbeautyxoxo1361 2 ปีที่แล้ว +1

    This was the best explanation of Joins. I appreciate you so much! other videos gave me an idea but this really helped me to comprehend and grasp the content. Thank you so much. You breaking this down step by step made a world of difference.

  • @PlantBasedPietro
    @PlantBasedPietro 3 ปีที่แล้ว

    I always had an idea of how the joins worked and usually experimented until I got the desired results. Now I fully understand the technique!!! Thank you Joey!!!!! :)

  • @adivax3
    @adivax3 4 ปีที่แล้ว

    You are the best teacher/instructor EVER!!! I dont know how you do it, but you make learning SQL so easy and enjoyable! Thank you!!!!

  • @tristanizlar
    @tristanizlar 5 ปีที่แล้ว +3

    Great video, cleared up some confusion for me. Subscribed!

  • @singhpad1
    @singhpad1 5 ปีที่แล้ว +2

    Thank you for your in-depth explanation for novices like me. Really appreciate it.

  • @user-yz5gn9ko8g
    @user-yz5gn9ko8g 5 ปีที่แล้ว

    god. this helped me so much on my assignment. I was looking at numerous videos and i couldn't understand any of those until i see yours. I'm so glad that this video exists. thank you so much.

  • @IamPali2024
    @IamPali2024 3 ปีที่แล้ว

    Where has this dude been??!!! I have been developing for over 10 years, and I found this explanation to be coherent and clear as I was looking for a refresher on my SQL skills.
    thank man

  • @SDemonZ
    @SDemonZ 5 ปีที่แล้ว

    Thanks a lot!
    This short video summarised hours of my database classes.
    Totally recommendable! :)

  • @mulugetakebede6651
    @mulugetakebede6651 4 ปีที่แล้ว

    i have been watching so many videos to understand this concept, yours is the only one that makes it so simple to understandable. Thank you so much

  • @Monotoss
    @Monotoss 5 ปีที่แล้ว

    I can't agree more with a comment, "Your is the only one that I understood". Same here. Absolutely brilliant explanation. Thanks so much Joey for making this awesome vids. You are the hero in SQL.

  • @Mous132
    @Mous132 5 ปีที่แล้ว +3

    40 minutes before my exams, you saved me ! Thanks !

  • @THE_joshbeoulve
    @THE_joshbeoulve 3 ปีที่แล้ว

    Thank you Mr. Blue. You succinctly explained in 8 minutes (didn't have to watch the whole vid) what my classroom teacher failed to teach in 45. More power to you, good sir.

  • @JoshuaMusau
    @JoshuaMusau 2 ปีที่แล้ว

    The best explanation of SQL joins I have ever come across! God bless you.

  • @lana1655
    @lana1655 2 ปีที่แล้ว

    Thank you, this is so helpful. I couldn't understand my teacher, your video is 100% clear and on point. I literally have no questions. Really appreciate it. The quality is great too. I never thought that could be an issue in 2021, however, after viewing my teacher's recordings I realized that one must put an effort to make it this good.

  • @JohnSmith-hn6kv
    @JohnSmith-hn6kv 5 ปีที่แล้ว

    This is probably the best Join video I've watched. Caleb should watch your videos for production values inspiration!

  • @decandanny5103
    @decandanny5103 4 ปีที่แล้ว +1

    This video helped me to understand sql joinings.Thank you!😀..good job! Keep on uploading videos.

  • @speakup2888
    @speakup2888 4 ปีที่แล้ว

    I wish I had a teacher like you in my school. God Bless You!

  • @Rogueimgs
    @Rogueimgs 4 ปีที่แล้ว

    Good job JB! I've felt like an idiot watching and reading my teachers instructions on joins but after your video I feel like its clearer. Mostly because you explain while showing the queries.

  • @ellyjessy5044
    @ellyjessy5044 5 ปีที่แล้ว

    I'm now more confident after watching your videos. Great teacher indeed.

  • @Shad0wB0X3r
    @Shad0wB0X3r 5 ปีที่แล้ว +1

    Your vid is amazing! I never understood joins Until ur vid taught me how to do so

  • @myguitarquest
    @myguitarquest 5 ปีที่แล้ว

    Now those diagrams finally make sense. What an excellent way to teach us joins!

  • @davidr7111
    @davidr7111 5 ปีที่แล้ว

    really great, clear, and easy to understand explanation. The best I've seen. Thank you!

  • @ronaldsiliezar7044
    @ronaldsiliezar7044 6 ปีที่แล้ว +1

    Thank you so much. This made it very simple for me to understand

  • @thomasedwardking7286
    @thomasedwardking7286 3 ปีที่แล้ว +1

    Such a clear, easy to follow vid. Epic, my man 💪🏋️‍♂️

  • @juliusguevarra3729
    @juliusguevarra3729 3 ปีที่แล้ว

    Thanks for explaining it very clearly. Out of all the videos that I watched regarding this topic, only yours made it all sense to me!

  • @VelezBiH
    @VelezBiH 3 ปีที่แล้ว

    Thank you, this was very easy to fallow and easy to understand. Also the graphics really helped understand the lef, inner and right joins. Great job!

  • @mariaelenarebolledo8696
    @mariaelenarebolledo8696 3 ปีที่แล้ว

    Nice! Straight to the point on SQL JOINS and the explanation is very clear. Thank You!

  • @pamtaylor9325
    @pamtaylor9325 5 ปีที่แล้ว

    Thanks Joey for this clear and concise tutorial. I learned basic concept of SQL

  • @Osedread
    @Osedread 6 ปีที่แล้ว

    Really well explained, it definitely helped me understand the different types of JOINs. Thank you.

  • @KiranPatel-gg6wt
    @KiranPatel-gg6wt ปีที่แล้ว

    It only took me 12 years to understand joins. I was always afraid to touch this topic. Now I have some confidence. Thanks.

  • @RS250Squid
    @RS250Squid 5 ปีที่แล้ว

    My tutor took us through a one hour lecture on joins and a one hour classroom session and all that she did was confuse me hugely and make my head spin! You made this so simple and easy to understand. Thanks :-).

  • @ThunderblightGanon14
    @ThunderblightGanon14 4 ปีที่แล้ว

    Hi Joey, this video clarified a lot of my confusion on how to do Joins. Thank you for your help!

  • @vedatduhadaglar960
    @vedatduhadaglar960 3 ปีที่แล้ว

    The way he explains it is so clear. Really well done

  • @andymassie6832
    @andymassie6832 6 ปีที่แล้ว

    I really appreciate the video! I'm taking classes through Udacity and this video was easier for me to understand.

  • @cristianoquinlan2654
    @cristianoquinlan2654 5 ปีที่แล้ว

    Great explanation Joey Bue.
    Looking forward for more videos tutorials.

  • @bunnyhei
    @bunnyhei 4 ปีที่แล้ว

    Thank you! I always find myself getting lost when people started talking about 'coding' or 'programming'.but your video is so well explained, and I understood what you have taught us. maybe i am not too dumb after all.

  • @dushyanthkandiah3718
    @dushyanthkandiah3718 6 ปีที่แล้ว +35

    this video should trend on youtube

  • @okeuwechue9238
    @okeuwechue9238 5 ปีที่แล้ว

    Nicely done!. The Venn diagram explanation really helps to clarify the various Join meanings.

  • @workfromhomedev
    @workfromhomedev 6 ปีที่แล้ว

    thanks for explaining. it is very clear and understandable than any other video i watched so far

  • @luckyduck2345
    @luckyduck2345 8 หลายเดือนก่อน

    I like how simply you explained this. Was the exact video I was looking for. Thanks a bunch!

  • @KyleBrinkerhoff
    @KyleBrinkerhoff 5 ปีที่แล้ว

    good lord that is so much more simple than what WGU teaches in their SQL class. you just saved me from so much friggen confusion

  • @timothyparker2796
    @timothyparker2796 3 ปีที่แล้ว

    Excellent explaination! I was really having a hard time understanding joins, but this helped!

  • @kopilkaiser8991
    @kopilkaiser8991 ปีที่แล้ว

    Brilliant tutorial. You were right on the spot to explain about this topic. It was really easier to understand SQL joins thanks to you

  • @jordanmcquade230
    @jordanmcquade230 4 ปีที่แล้ว

    Great video. Presented clearly and at a pace, I can understand first-time. Thanks.

  • @Nrgdumik
    @Nrgdumik ปีที่แล้ว

    for real, this is the best tutorial on JOINS..Great explanation, thanks!

  • @bimsarademintha6845
    @bimsarademintha6845 4 ปีที่แล้ว +2

    Dude tomorrow is my DBMS exam for my diploma and you've probably saved my life. Hats off mate.

  • @christopherdent
    @christopherdent 4 ปีที่แล้ว

    Best explanation I've seen so far, thanks very much!