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

Sdílet
Vložit
  • čas přidán 6. 08. 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-...
    CZcams NEWS UPDATES
    / sqltrainingonline
    VISIT SQLTRAININGONLINE.COM FOR TONS MORE VIDEO NEWS & TIPS
    www.sqltrainingonline.com
    SUBSCRIBE FOR OTHER SQL TIPS AND NEWS!
    czcams.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
  • Věda a technologie

Komentáře • 557

  • @joeyblue1
    @joeyblue1  Před 3 lety +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 Před 3 lety

      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 Před 3 lety

      @Bridger Enzo instablaster :)

    • @bridgerenzo6857
      @bridgerenzo6857 Před 3 lety +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 Před 3 lety

      @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 Před 3 lety

      @Bridger Enzo happy to help :D

  • @momentshub3773
    @momentshub3773 Před 6 lety +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 Před 6 lety +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 Před 4 lety

      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 Před 4 lety +5

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

  • @danieldouglas3340
    @danieldouglas3340 Před 5 lety +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!

  • @PatrickburkeTVComedy
    @PatrickburkeTVComedy Před 6 lety +86

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

  • @halildurmaz7827
    @halildurmaz7827 Před 3 lety +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-bd4wc3oy8m
    @user-bd4wc3oy8m Před 6 lety +37

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

  • @isaacsmoli
    @isaacsmoli Před 5 lety +2

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

  • @JerodimusPrime
    @JerodimusPrime Před 5 lety +3

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

  • @user-zz3qw9nr2p
    @user-zz3qw9nr2p Před rokem +2

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

  • @AmitYadav-hn9rn
    @AmitYadav-hn9rn Před 4 lety +1

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

  • @vespa731
    @vespa731 Před 6 lety +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

  • @SS-bo9re
    @SS-bo9re Před 3 lety +1

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

  • @markgarrett2971
    @markgarrett2971 Před 2 lety

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

  • @bernardcyrus8189
    @bernardcyrus8189 Před 10 měsíci

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

  • @benjaminswindle
    @benjaminswindle Před 5 lety +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!

  • @ekaterinaslavova2320
    @ekaterinaslavova2320 Před 4 lety +5

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

  • @DallasOakCliff
    @DallasOakCliff Před 6 lety +90

    This dude is the Michael Jordan of SQL vids.

  • @igorsmet1123
    @igorsmet1123 Před 4 lety

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

  • @MrBauer73
    @MrBauer73 Před 3 lety +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.

  • @4realentropyst230
    @4realentropyst230 Před 6 lety +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!

  • @StefanoVerugi
    @StefanoVerugi Před 2 lety

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

  • @mgismondo
    @mgismondo Před 6 lety

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

  • @OffbeatOracle
    @OffbeatOracle Před 4 lety +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.

  • @ahmedsehic9019
    @ahmedsehic9019 Před 6 lety +2

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

  • @georgecristianiordan3712
    @georgecristianiordan3712 Před 6 lety +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.

  • @aaronmarks7912
    @aaronmarks7912 Před 6 lety

    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!

  • @Vpzoe
    @Vpzoe Před 5 lety +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!

  • @hannav7125
    @hannav7125 Před 3 lety

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

  • @ZnSstr
    @ZnSstr Před 4 lety

    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.

  • @RandjithKumar
    @RandjithKumar Před 4 lety

    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.

  • @joshuakoni5428
    @joshuakoni5428 Před 4 lety

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

  • @nw7us
    @nw7us Před 4 lety

    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.

  • @thejancis38
    @thejancis38 Před 4 lety +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!

  • @isaacvallejo6333
    @isaacvallejo6333 Před 4 lety

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

  • @samsbuzz9272
    @samsbuzz9272 Před 4 lety +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..

  • @adivax3
    @adivax3 Před 4 lety

    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!!!!

  • @searez7251
    @searez7251 Před 3 lety +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!

  • @arlenefvivaldi9677
    @arlenefvivaldi9677 Před 5 lety +1

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

  • @alexandreabarbosa
    @alexandreabarbosa Před 5 lety +11

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

  • @violetadyulgerova1446
    @violetadyulgerova1446 Před 4 lety +2

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

  • @GfastGao
    @GfastGao Před 4 lety

    Exactlly the thing I need:
    1. No BS agenda
    2. no fancy context description
    3. just thing about the topic and pitfalls I may encounter.
    Congrat, another good vid tutorial found!

  • @rufinosalgado4126
    @rufinosalgado4126 Před 5 lety +1

    The clearest description of joins I've ever seen.

  • @Yegorich
    @Yegorich Před 5 lety +2

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

  • @CoderSprint
    @CoderSprint Před 5 lety

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

  • @JoshuaMusau
    @JoshuaMusau Před 2 lety

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

  • @mattiekahn4616
    @mattiekahn4616 Před 6 lety

    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!

  • @mulugetakebede6651
    @mulugetakebede6651 Před 4 lety

    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

  • @TheChodex
    @TheChodex Před 5 lety

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

  • @jjones40
    @jjones40 Před 5 lety +2

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

  • @user-yz5gn9ko8g
    @user-yz5gn9ko8g Před 5 lety

    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.

  • @dejasbeautyxoxo1361
    @dejasbeautyxoxo1361 Před 2 lety +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.

  • @KiranPatel-gg6wt
    @KiranPatel-gg6wt Před rokem

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

  • @myguitarquest
    @myguitarquest Před 5 lety

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

  • @THE_joshbeoulve
    @THE_joshbeoulve Před 3 lety

    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.

  • @singhpad1
    @singhpad1 Před 5 lety +2

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

  • @ellyjessy5044
    @ellyjessy5044 Před 5 lety

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

  • @speakup2888
    @speakup2888 Před 4 lety

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

  • @IamPali2024
    @IamPali2024 Před 3 lety

    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

  • @juliusguevarra3729
    @juliusguevarra3729 Před 3 lety

    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!

  • @lana1655
    @lana1655 Před 2 lety

    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.

  • @PlantBasedPietro
    @PlantBasedPietro Před 3 lety

    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!!!!! :)

  • @Rogueimgs
    @Rogueimgs Před 4 lety

    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.

  • @vedatduhadaglar960
    @vedatduhadaglar960 Před 3 lety

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

  • @lorismiths6951
    @lorismiths6951 Před 5 lety

    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!

  • @igordjurdjic7380
    @igordjurdjic7380 Před 6 lety +2

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

  • @bimsarademintha6845
    @bimsarademintha6845 Před 4 lety +2

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

  • @ThunderblightGanon14
    @ThunderblightGanon14 Před 4 lety

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

  • @alexpajp123
    @alexpajp123 Před 6 lety +6

    Your explanations were very simple. Great video!

  • @Monotoss
    @Monotoss Před 5 lety

    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.

  • @manilakid3
    @manilakid3 Před 5 lety

    Best explanation about SQL joins on the Tube. The others try to over complicate things to make themselves sound scientific which defeats the purpose of a tutorial. Thanks Joey.

  • @KyleBrinkerhoff
    @KyleBrinkerhoff Před 5 lety

    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

  • @luckyduck2345
    @luckyduck2345 Před 8 měsíci

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

  • @kopilkaiser8991
    @kopilkaiser8991 Před rokem

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

  • @workfromhomedev
    @workfromhomedev Před 6 lety

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

  • @mariaelenarebolledo8696

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

  • @JohnSmith-hn6kv
    @JohnSmith-hn6kv Před 6 lety

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

  • @Nrgdumik
    @Nrgdumik Před rokem

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

  • @SDemonZ
    @SDemonZ Před 5 lety

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

  • @bunnyhei
    @bunnyhei Před 4 lety

    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.

  • @davidr7111
    @davidr7111 Před 5 lety

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

  • @mattmattelig
    @mattmattelig Před 4 lety

    using the venn diagrams to explain the concept was genius. Thank you for your great tutorial. thumbs up

  • @RS250Squid
    @RS250Squid Před 5 lety

    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 :-).

  • @alexedeigba
    @alexedeigba Před 6 lety +8

    Lovely video Joey. This was quite helpful

  • @okeuwechue9238
    @okeuwechue9238 Před 5 lety

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

  • @VelezBiH
    @VelezBiH Před 3 lety

    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!

  • @MostafaMASLOUHI
    @MostafaMASLOUHI Před 4 lety

    This is the first time I understand these stuffs. THANK YOU

  • @pamtaylor9325
    @pamtaylor9325 Před 5 lety

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

  • @jordanmcquade230
    @jordanmcquade230 Před 4 lety

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

  • @barysznikow
    @barysznikow Před 2 lety

    Dear God, I was looking for someone who explain me how to use joins, and finally You sir made it clear and simple. Thank you!

  • @imanqoly
    @imanqoly Před 3 měsíci

    After a long long time of procrastinating to understand the joins, finally, thanks a lot

  • @stianleinaas1638
    @stianleinaas1638 Před 6 lety +9

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

  • @randomness3235
    @randomness3235 Před 5 lety +3

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

  • @Osedread
    @Osedread Před 6 lety

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

  • @randomguy-dd6mn
    @randomguy-dd6mn Před 2 lety

    thank you so much for this, I don't think I would be able to the thing I wanted without this

  • @FinallHit
    @FinallHit Před 4 lety

    I struggled alot with joins.. and now im like "thats it??"
    Great explantion!

  • @Shad0wB0X3r
    @Shad0wB0X3r Před 5 lety +1

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

  • @Mous132
    @Mous132 Před 5 lety +3

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

  • @ashwinjambhekar8063
    @ashwinjambhekar8063 Před 4 lety

    Perfect! The venn diagram makes it so much easier to understand.

  • @GabrielleBouchard
    @GabrielleBouchard Před 4 lety

    thank you so much. Really appreciate the time you took to explain joins for us. I get it now