SQL Joins Explained |¦| Joins in SQL |¦| SQL Tutorial

Sdílet
Vložit
  • čas přidán 24. 03. 2019
  • SQL Joins let you fetch data from 2 or more tables in your database. We will cover the more common types of Joins: Inner Joins, Left Joins, Right Joins, and Full Joins (also called ‘Full Outer Joins’). We will introduce these 4 kinds of Joins and prepare you for our next video where we will cover many examples.
    Our SQL playlist starts here:
    ↪bit.ly/Socratica_SQL
    Be sure to SUBSCRIBE for more SQL!
    ↪ bit.ly/SocraticaSubscribe
    You may also enjoy our Python playlist:
    ↪bit.ly/PythonSocratica
    ♦♦♦♦♦♦♦♦♦♦
    Ways to support our channel:
    ► Join our Patreon : / socratica
    ► Make a one-time PayPal donation: www.paypal.me/socratica
    ► We also accept Bitcoin @ 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9
    Thank you!
    ♦♦♦♦♦♦♦♦♦♦
    Connect with us!
    Facebook: / socraticastudios
    Instagram: / socraticastudios
    Twitter: / socratica
    ♦♦♦♦♦♦♦♦♦♦
    SQL instructor: Ulka Simone Mohanty (@ulkam on Twitter)
    Written & Produced by Kimberly Hatch Harrison (@khhsocratica) & Michael Harrison (@mlh496)
    ♦♦♦♦♦♦♦♦♦♦

Komentáře • 1,3K

  • @Socratica
    @Socratica  Před 4 lety +320

    It's official! The Socratica Python Kickstarter was a success! Thank you to all of our supporters. Because of you, many more Python videos coming soon!! 💜🦉

    • @njstudio2526
      @njstudio2526 Před 4 lety

      ok thankyou but i am new in this field how we get jobs in DBA

    • @njstudio2526
      @njstudio2526 Před 4 lety

      as DBA

    • @friendlychannel100
      @friendlychannel100 Před 4 lety +1

      is it required to make (martian-table)base id a primary key and (base-table) a foreign key?

    • @InspiringThings101
      @InspiringThings101 Před 3 lety +2

      Any way we can have access to the Martian data as an XLM file somewhere? Lol I would like to practice with it.

    • @QuizmasterLaw
      @QuizmasterLaw Před 3 lety +1

      This could be better if you included a link to what you think is the best online busybox/play tool to practice/learn sql in practice.
      I still think you're really a robot ^_^

  • @islamelgarhi1808
    @islamelgarhi1808 Před 4 lety +1339

    This is saving me from getting fired

  • @gamezine8374
    @gamezine8374 Před 3 lety +337

    I actually cried because this is too good to be free. Thank you.

  • @josephjames2767
    @josephjames2767 Před 3 lety +110

    Ok 2 minutes into this explanation I'm like "This how i want to learn everything else for the rest of my life"

  • @JannisAdmek
    @JannisAdmek Před 3 lety +108

    2:25 the sound of the tables joining is sooo satisfying!

  • @RSPodcast44
    @RSPodcast44 Před rokem +359

    Whoever wrote, hosted, edited, directed this masterpiece, deserves a Nobel Prize, well done ❤️

  • @dingus4138
    @dingus4138 Před 3 lety +554

    This is the first time I've heard someone explain the LEFT vs RIGHT join in a way that makes sense. Thank you!

    • @dorcasia109
      @dorcasia109 Před 3 lety +6

      Me too! This video was shared in my sql class and they are the most helpful I have found.

    • @BigBoii1369
      @BigBoii1369 Před rokem +2

      SAME HERE!

    • @anthonyogundipe9248
      @anthonyogundipe9248 Před rokem +3

      Me too, first time I see an excellent explanation after over a decade of programming.

  • @wogawooga
    @wogawooga Před 3 lety +145

    never seen such a well-produced SQL video

  • @tekapowai4734
    @tekapowai4734 Před 3 lety +149

    I can't express the amount of inner join I got from this

    • @e.zarate
      @e.zarate Před 3 lety +7

      MORE LIKE INNER JOY RIGHT?

  • @szabozsombor3785
    @szabozsombor3785 Před 4 lety +455

    Your style is simply hilarious. This is what great education should look like!

  • @ivanpuzankov
    @ivanpuzankov Před 7 měsíci +11

    Acting, jokes, delivery of information, everything here is magnificent

  • @alexanderpalm6407
    @alexanderpalm6407 Před 3 lety +373

    Let's not only acknowledge the great tutorial, but also the satisfying sound effects when the rows are joined together! 🥰

  • @CompSciCentral
    @CompSciCentral Před 2 lety +422

    This is one of the most creative tutorials I've ever seen. Absolutely brilliant.
    Thanks for making learning fun!

  • @mahmoudalsafty5202
    @mahmoudalsafty5202 Před 5 lety +495

    I can't express how much i love this series

  • @thegamerator10
    @thegamerator10 Před 4 lety +29

    Gotta say, this is one of the most creative ways to teach SQL and databases I've ever seen.

  • @inbalelmalech3902
    @inbalelmalech3902 Před 2 lety +13

    Watched an hour ago, still laughing.
    You managed to make SQL funny while explaining it better than anything else I've found so far, and that's gotta be a superpower of some kind.. You guys are awesome!

  • @edammen
    @edammen Před 3 lety +132

    I really deeply appreciate that you explained this with a theme, because I know how much time and effort editing this kind of videos take. You could just simply explain joins in a whiteboard or a regular presentation but you went beyond that and that alone deserves recognition 👏👏👏

  • @GhostedJackal
    @GhostedJackal Před 5 lety +597

    In the future, everyone uses SQL still? Oh, god, this truly is the worst timeline.

    • @DrShpilev
      @DrShpilev Před 4 lety +6

      Don't worry. The SQL will also be encapsulated by a layer or AI. I mean... sure... the AI will probably also plot to vacate all of Earths atmosphere or something, but at least you wouldn't actually have to write the SQL yourself anymore.

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

      Or job security haha

    • @mykhailomikhnovych8303
      @mykhailomikhnovych8303 Před 4 lety +6

      @@rafatashrafjoy2936 no worriers. It's impossible to work with large database using NoSql.

    • @hacerclic1020
      @hacerclic1020 Před 3 lety +4

      And they will still be writing articles about how AI will soon make computer programmers unnecessary.

    • @codevev
      @codevev Před 3 lety

      It's the future. Everyone is using NoSQL now but SQL is still around :)

  • @globaltrident5341
    @globaltrident5341 Před 5 lety +185

    It should have been a Dear Join Letter.

    • @Socratica
      @Socratica  Před 4 lety +75

      Opportunity wasted.

    • @HS-hr5wp
      @HS-hr5wp Před 4 lety +2

      Yes!!

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

      No No it should have been a Dear Join Later.

  • @Jt-xe3xi
    @Jt-xe3xi Před rokem +17

    This is absolutely a masterpiece. I usually don't comment on videos but THIS VIDEO??? I cannot pass through without how amazing and well done this video was made. I was completely lost when I was reading about the Join process, and most videos usually don't help as much. This video was not only informational but also very fun to watch. It was kind of like watching a movie. Once again, thank you to everyone who contributed in this. Subscribed.

  • @IslamAudioStation
    @IslamAudioStation Před 3 lety +14

    This is probably the weirdest tutorial i have ever watched, but it is absoloutely amazing and well explained.Thanks!

  • @filizcamuz8119
    @filizcamuz8119 Před 4 lety +58

    Amazing! You just saved me 2 hours of reading, thank you.

  • @CyrixLord
    @CyrixLord Před 5 lety +88

    The Venn diagram example nailed it into my head wonderfully. Thank you. Now I cannot unsee the types of joins.

  • @bensmith6987
    @bensmith6987 Před 3 lety +55

    Your explanations are simply clear, straight to the point and easy to understand - better quality than majority of university professors or boot camp trainers. Thank you

    • @BigBoii1369
      @BigBoii1369 Před rokem

      After just coming from a pretty good Udemy boot camp trainer, I 100% agree!

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

    By far you've explained joins as best I've seen on YT. Using inner join as the standard and left, right, and full as different tools it helps add context for why you would utilize the joins. So many times people try to explain this stuff completely theoretically, and does my head in. I enjoy the quirkiness too

  • @kevalmehta1058
    @kevalmehta1058 Před 5 lety +49

    I usually don't login to the youtube. But, after hearing that "join" joke I had to subscribe and give you a like.

  • @Antnierv
    @Antnierv Před 4 lety +11

    wow....never thought I would find SQL remotely interesting.... Thank you for making this so much less painful!

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

    OMG........this lady is amazing! The production values, comedic values, learning values, and creativity of the video are just killer. I never had so much fun watching a SQL video before and that does put a smile on my face.........

  • @DoctorNovaParadox
    @DoctorNovaParadox Před 29 dny

    This is unironically the *best* explanation of joins in SQL that I have come across. Thank you so much for making this video!

  • @sql_mike8268
    @sql_mike8268 Před 4 lety +17

    A SQL query goes to a bar, walks up to two tables and says, "May I join you?" Great videos Socratica!

  • @adriancelis9691
    @adriancelis9691 Před 5 lety +28

    Dang so far the best video explaination for beginners ive seen on youtube. Thanks.

  • @milesdavis8250
    @milesdavis8250 Před rokem

    FINALLY!!! Someone who has explained joined in a way I can understand. Thank you 👏🏾👏🏾

  • @murmelbear8507
    @murmelbear8507 Před 3 lety +2

    This style of teaching makes the pieces of information much less painful to learn. I love it! Thank you so much for this content!

  • @DARKCOP2011
    @DARKCOP2011 Před 5 lety +6

    Ulka you are one of the greatest teachers i ever saw in my life! no joke

  • @83jdizzle83
    @83jdizzle83 Před 4 lety +5

    You just saved my brain... Thank you for breaking this down the way you did. I could not figure out the Join was actually doing but your formatting and starting with the * for all columns then narrowing it down made it all click for me. Thank you so much!!

  • @internetdrew
    @internetdrew Před rokem +1

    Yo... just me or is this the most creative way to learn this stuff? They killed this!

  • @mdsaimumhossain7878
    @mdsaimumhossain7878 Před 9 měsíci +1

    Take a bow, the creative team behind this tutorial. You people deserve an Oscar for the R. E. Joinder thingy!

    • @jasonwang-wg8wu
      @jasonwang-wg8wu Před 5 měsíci

      agreed, that was high-level comedy right thurr. I chuckled.

  • @emmanuelevuazeze4729
    @emmanuelevuazeze4729 Před 4 lety +3

    Those animations are just superb. I have been looking for something like this that will give a clear visual explanation of joins but they are very rare to find or not good enough. Thank you Socratica

  • @369jwillow
    @369jwillow Před 4 měsíci

    By far the most clear and concise explanation of JOINS I have seen! Thanks so much!

  • @blessanmathew7893
    @blessanmathew7893 Před 2 lety +2

    I haven't written an sql query in like 5 years so just wanted to refresh my knowledge. This is so good. I wish content like this existed when I was learning how to code.

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

    7:53 love it 🤗
    This was extremely clear. Much love to the editing too

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

    This is a really great video (and I assume course though I've not seen the other videos yet).
    Super clear explanation, and I love that I can use my imagination to help to solidify the concepts better, great job!

  • @StevenIvoire
    @StevenIvoire Před 2 měsíci

    This is by far the BEST EXPLAINATION of Join in SQL. Thank you so much!

  • @bonganisingo1717
    @bonganisingo1717 Před měsícem

    This is one of the best explanations I've ever seen! Tears of join running down my face right now.

  • @actrox1
    @actrox1 Před rokem +3

    I can't tell how these animations took my concentration, everything went easier than I thought, Thank you Socratica for your clear explanations and time, I can't wait to be where others are🥰.

    • @Socratica
      @Socratica  Před rokem +1

      We're so inspired by you! Thank you for sharing your motivation and excitement about learning. 💜🦉

  • @websterwing8225
    @websterwing8225 Před 5 lety +8

    It's good to know that I live in a world where glados 2.0 will patiently explain sql to me.

  • @johneyon5257
    @johneyon5257 Před 21 hodinou

    i cannot compliments this video too much - so much thought has gone into it - it has thorough & excellent examples - the visuals are superb - and narrator is the best

  • @lbb2rfarangkiinok
    @lbb2rfarangkiinok Před 2 lety

    The background noise giving that outer-space vibe is such a nice touch. I thoroughly enjoyed this video.

  • @hoapham7389
    @hoapham7389 Před 4 lety +4

    I'll be watching these more in detail at the next semester

  • @raminmdn
    @raminmdn Před 5 lety +5

    Maybe your next series can be about teaching some "words" in English language, which can help us express how much we love this series !

  • @imrana.8370
    @imrana.8370 Před 5 měsíci

    I didn't there was any way in the entire multiverse to make SQL entertaining but you did it! Now I'm starting to understand JOINs!

  • @Andy_a7
    @Andy_a7 Před 3 lety +1

    finally SQL tutorial that visually demonstrates and explains how rows from different tables are joined.

  • @SteinGauslaaStrindhaug
    @SteinGauslaaStrindhaug Před 5 lety +9

    Good to hear that the crazy NoSQL fad has ended and we're sensibly using SQL in the future. ;)

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

    It's worth noting that PostgreSQL also has a USING clause for joins, which can be used in place of the ON clause when--and only when--the column(s) being joined on in both tables have the same name. So using the example in the video, "ON b.base_id = m.base_id" could be replaced with "USING (base_id)". And yes, that syntax would work for all 4 types of joins.

    • @jvsnyc
      @jvsnyc Před 5 lety

      Yup. Unfortunately, there are a lot of DBMS's that do not USE USING, so it wouldn't work in code trying to be portable across DBMS choices.

  • @itsme-oc4vl
    @itsme-oc4vl Před rokem

    This might be the most creative and fast forward tutorial I've ever watched !!

  • @arpitsaxena9249
    @arpitsaxena9249 Před 2 lety +1

    Whimsy, quality content, brevity, this playlist is the complete package. Absolutely love the effort!

  • @yawningpheonix
    @yawningpheonix Před 4 lety +3

    Writing this down in my notebook: Okay, yeah this makes perfect sense. Everything is logical and clear.
    Testing myself with creating a customized sandwich database: What is what again?

  • @Hyp3rX360
    @Hyp3rX360 Před 4 lety +8

    Just found this channel, it's really good, although sometimes the face expressions are kind of creepy, maybe that's why I like it hehe

  • @Siege2Sage
    @Siege2Sage Před 3 lety +1

    I love how well structured and meaningful your programming videos are. This channel is my go to source.

  • @pmordecki
    @pmordecki Před 27 dny

    The visual clarity of this tutorial is amazing! I've struggled with joins for weeks, this was just what I needed. Mil gracias!!
    Sad for pour homeless John Carter though...

  • @ginflorita2148
    @ginflorita2148 Před 3 lety +4

    I wanna go back to college again and make perfect my exams.

  • @BritishMoralHQ
    @BritishMoralHQ Před 5 lety +75

    im doing intention yoga so i can marry this woman this life or next or the one after...

  • @bryancore
    @bryancore Před 7 měsíci

    THIS IS EXACTLY WHAT I WAS LOOKING FOR, the tables so nicely presented instead of starting at sql server no clue what to type omg

  • @joross8
    @joross8 Před 2 lety

    Best description of SQL joins I've found on youtube. Great content. Thanks

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

    I bought a bunch of books and none of them use Venn diagrams like you did here.
    I could have saved a lot of scratch. : /

  • @kellingc
    @kellingc Před 5 lety +5

    I think the writers were having too punny of a time with this script. However, she could read the dictionary and I'd still watch and learn.
    Join is one concept that is vital in a relational database, yet it is the weakest of my SQL skills. Thank you for producing this course.

  • @sajidamoin771
    @sajidamoin771 Před 3 lety

    This free superbly helpful video not only shows how bighearted you are but also how much you love what you’re doing.. Thanks a lot. God bless you.

  • @spradflex
    @spradflex Před 2 lety

    Just the right amount of interesting, visual, and quirky/goofy. 12/10 would recommend.

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

    Lmao you sound totally different from python instructor.

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

      because SQL is fun and python is hard, you need a serious face to learn python.

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

    I'm born in March, does that mean that I'm a martian?

  • @isaachamilton2418
    @isaachamilton2418 Před rokem

    I have tried to get clear information on JOINS from a few certs, and this is 1000X more clear than any of them, and quicker. I am SO thankful for this

  • @arizavala5297
    @arizavala5297 Před 2 lety +1

    I’ve been a few years in the Tech industry now but I haven’t worked with SQL in the past 5 years. This video is just amazing. Great resource for learning SQL joins.

  • @Sqlprincess90
    @Sqlprincess90 Před 3 lety

    Socratica, thanks for your clear and concise content! You saved my life in school for Python, now I'm here for SQL! I love your sense of humor!

  • @etlens
    @etlens Před 3 lety +2

    LOVE this video, it's entertaining to watch while explaining JOIN clause clearly. GREAT JOB!

  • @PlayLyss
    @PlayLyss Před 4 měsíci

    This is an ACTUAL LIFE SAVER. Thank you for making a fun, silly example, and ACTUALLY VISUALLY MOVING THE ROWS and COLUMNS physically in the space to join them. I NEEEEEDED to SEEEE this. Not to HEAR it explained in fancy tech terms. You are AMAZING.

    • @Socratica
      @Socratica  Před 4 měsíci

      This is great to hear, thanks for telling us. That's the thing we're aiming for in these videos-what can you do with a video that you can't do as well with just written tutorials.

  • @user-vv8bp7co1m
    @user-vv8bp7co1m Před rokem

    This is the best channel...ever...I love how she is like a character from a TV series...It helps people like me who has a short attention span focus

  • @DrinkElectrolytes
    @DrinkElectrolytes Před rokem

    I've been a data analyst for a whole year and was missing this basic visual explaination of how JOINs work. You helped me figure some duplication stuff out I was really struggling with. Thank you!!

  • @Coyote8080aru
    @Coyote8080aru Před rokem

    This is by far the clearest explanation of joins that I have seen. Thank you and we'll done. It motivated me to *JOIN*

  • @BadMouton
    @BadMouton Před 2 lety

    This is so wholesome, smiling and learning the whole time

  • @noymorgenshtein9191
    @noymorgenshtein9191 Před rokem

    This is just incredible. Its very clear, keeps you interested throughout the whole thing, has intentional bad jokes, kudos @Socratica

  • @kenovate81
    @kenovate81 Před měsícem

    Wow, by far the best produced and most entertaining database and/or tech in general, tutorial I've seen in a long while!

  • @DeejayRobert
    @DeejayRobert Před 2 lety

    Never thought I'd be smiling through a programming tutorial... just brilliant stuff

  • @jamespiazza7753
    @jamespiazza7753 Před 2 lety +1

    This is truly incredible. Thank you so much for making this. So easy to understand!

  • @JossinJax
    @JossinJax Před 4 lety

    This series is so on point and the talent couldn't be more perfect!

  • @loveafinni
    @loveafinni Před 5 měsíci

    The best tutorial I've watched on CZcams!

  • @hellohell-eo7fe
    @hellohell-eo7fe Před 2 lety

    extremely helpful, finished my assignment and didn't cry once because of this. 10/10 gives you maidens.

  • @NT-td1xr
    @NT-td1xr Před 2 lety

    this is amazing! I was fully gonna settle for some run of the mill SQL tutorial with quick examples but your explanation and production quality are top notch. thanks a bunch!

  • @andrew.schaeffer4032
    @andrew.schaeffer4032 Před 2 lety +1

    This is awesome! So much more entertaining than my current SQL course - and I love the visuals. I'm a super visual learner

  • @o1techacademy
    @o1techacademy Před rokem

    I didn't understand SQL join until I watched this video. Thank you so much. Amazing socratica

  • @auzkiee
    @auzkiee Před 3 lety

    This video is truly one of the gems on CZcams, the effort you went to help us visualise everything...Thank you very much!

  • @fin4314
    @fin4314 Před rokem +1

    Thank you, I had questions about SQL during my engineering test and learning from your videos helped me pass it

  • @brandonstewart7942
    @brandonstewart7942 Před 2 lety

    I’ve never been so invested and entertained while learning about data structures. Thank you.

  • @davidekechi4228
    @davidekechi4228 Před rokem

    I already understood this topic in the first few minutes but I couldn't stop myself from watching till the end.
    I never knew I could actually enjoy a tutorial.
    I'm checking out the rest of your videos

  • @mitchellcampbell2775
    @mitchellcampbell2775 Před rokem +2

    As I am typing this, this might just be the best video on the internet!
    These videos are well-explained, well-presented, and the humour deserves a gold medal 😀
    Sincerely, thank you Socratica for putting these videos together!

    • @Socratica
      @Socratica  Před rokem

      Thank you so much for your kind words! We're so glad you're enjoying our videos-we've had so much fun making them. 💜🦉

  • @kadiogluorkun
    @kadiogluorkun Před 4 lety +1

    whaaaat! to be frankly honest... this is the clearest SQL-joins video I have ever seen. a job well done! and thanks a lot, obviously :)

  • @user-ki6tu2il5h
    @user-ki6tu2il5h Před rokem

    I never imagined that learning SQL could be so much fun! The creators of this channel are genius. Thank you so much!

  • @cunningchanning3000
    @cunningchanning3000 Před rokem

    This has to be the best, most creative and engaging explanation video on CZcams. I'm impressed.

  • @corndoggydogdog
    @corndoggydogdog Před 11 měsíci

    This reminded me of old naff educational videos from primary school, except, it was BRILLIANT and hilarious and very educational.
    Excellent satire and very informative.
    Kudos to you at Socratica!

  • @wayneswildworld
    @wayneswildworld Před 2 lety +1

    Not gonna lie I had my doubts in the beginning, but the space-themed examples were great and this helped me understand joins better than any of the other videos that I watched thank you so much!

  • @Will-uu9kh
    @Will-uu9kh Před rokem

    This honestly made this concept so clear and concise. 10/10 thanks a ton.