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

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)
♦♦♦♦♦♦♦♦♦♦

Пікірлер: 1 300

  • @Socratica
    @Socratica4 жыл бұрын

    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

    4 жыл бұрын

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

  • @njstudio2526

    @njstudio2526

    4 жыл бұрын

    as DBA

  • @friendlychannel100

    @friendlychannel100

    4 жыл бұрын

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

  • @InspiringThings101

    @InspiringThings101

    3 жыл бұрын

    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

    3 жыл бұрын

    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 ^_^

  • @gamezine8374
    @gamezine83743 жыл бұрын

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

  • @RSPodcast44
    @RSPodcast44 Жыл бұрын

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

  • @jedgeorge3485

    @jedgeorge3485

    8 ай бұрын

    Yes!

  • @JannisAdmek
    @JannisAdmek3 жыл бұрын

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

  • @alimertc

    @alimertc

    3 жыл бұрын

    lol i agree

  • @user-gw5lc2ks2v

    @user-gw5lc2ks2v

    3 жыл бұрын

    lmao yes I thought I was the only one

  • @islamelgarhi1808
    @islamelgarhi18084 жыл бұрын

    This is saving me from getting fired

  • @nanoshinnnnnnnnn9953

    @nanoshinnnnnnnnn9953

    3 жыл бұрын

    what 😂😂 hope your joking bro

  • @SanthoshFabre

    @SanthoshFabre

    3 жыл бұрын

    Buhahaha

  • @Alex-pd5xc

    @Alex-pd5xc

    3 жыл бұрын

    haha!

  • @xarisadmiral3614

    @xarisadmiral3614

    3 жыл бұрын

    xD

  • @roselpadilla

    @roselpadilla

    3 жыл бұрын

    You still workin there?

  • @josephjames2767
    @josephjames27673 жыл бұрын

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

  • @dingus4138
    @dingus41383 жыл бұрын

    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

    3 жыл бұрын

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

  • @BigBoii1369

    @BigBoii1369

    Жыл бұрын

    SAME HERE!

  • @anthonyogundipe9248

    @anthonyogundipe9248

    Жыл бұрын

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

  • @ivanpuzankov
    @ivanpuzankov7 ай бұрын

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

  • @wogawooga
    @wogawooga3 жыл бұрын

    never seen such a well-produced SQL video

  • @szabozsombor3785
    @szabozsombor37854 жыл бұрын

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

  • @alexanderpalm6407
    @alexanderpalm64073 жыл бұрын

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

  • @Ahmad-ww4ue

    @Ahmad-ww4ue

    Жыл бұрын

    Boom!!!

  • @toddhodder

    @toddhodder

    Жыл бұрын

    Another Kindred Spirit exists.

  • @vishalsaini6538

    @vishalsaini6538

    Жыл бұрын

    yeah! Just Like Tiles

  • @adamx9793

    @adamx9793

    10 ай бұрын

    I liked those too!

  • @CompSciCentral
    @CompSciCentral2 жыл бұрын

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

  • @dhoneybeekingdom7889

    @dhoneybeekingdom7889

    11 ай бұрын

    Totally agree!

  • @tekapowai4734
    @tekapowai47343 жыл бұрын

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

  • @e.zarate

    @e.zarate

    3 жыл бұрын

    MORE LIKE INNER JOY RIGHT?

  • @mahmoudalsafty5202
    @mahmoudalsafty52025 жыл бұрын

    I can't express how much i love this series

  • @gadgetboynaija

    @gadgetboynaija

    5 жыл бұрын

    Same!

  • @racheltindoy

    @racheltindoy

    4 жыл бұрын

    LMAO it's like watching Netflix.

  • @TheIronmore

    @TheIronmore

    3 жыл бұрын

    ...and the presenter, so beatuful.

  • @edammen
    @edammen3 жыл бұрын

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

  • @palficsaba1710

    @palficsaba1710

    Жыл бұрын

    That's not Socratica way

  • @thegamerator10
    @thegamerator104 жыл бұрын

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

  • @inbalelmalech3902
    @inbalelmalech39022 жыл бұрын

    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!

  • @bensmith6987
    @bensmith69873 жыл бұрын

    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

    Жыл бұрын

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

  • @filizcamuz8119
    @filizcamuz81194 жыл бұрын

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

  • @Jt-xe3xi
    @Jt-xe3xi Жыл бұрын

    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.

  • @DoctorNovaParadox
    @DoctorNovaParadox13 күн бұрын

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

  • @GhostedJackal
    @GhostedJackal5 жыл бұрын

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

  • @DrShpilev

    @DrShpilev

    4 жыл бұрын

    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

    4 жыл бұрын

    Or job security haha

  • @mykhailomikhnovych8303

    @mykhailomikhnovych8303

    4 жыл бұрын

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

  • @hacerclic1020

    @hacerclic1020

    3 жыл бұрын

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

  • @codevev

    @codevev

    3 жыл бұрын

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

  • @CyrixLord
    @CyrixLord5 жыл бұрын

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

  • @IslamAudioStation
    @IslamAudioStation3 жыл бұрын

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

  • @TheSoulCrisis
    @TheSoulCrisis2 жыл бұрын

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

  • @globaltrident5341
    @globaltrident53415 жыл бұрын

    It should have been a Dear Join Letter.

  • @Socratica

    @Socratica

    4 жыл бұрын

    Opportunity wasted.

  • @HS-hr5wp

    @HS-hr5wp

    4 жыл бұрын

    Yes!!

  • @Jewelsonn

    @Jewelsonn

    3 жыл бұрын

    No No it should have been a Dear Join Later.

  • @JoshuaWilsonNZ
    @JoshuaWilsonNZ3 жыл бұрын

    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

  • @milesdavis8250
    @milesdavis8250 Жыл бұрын

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

  • @Antnierv
    @Antnierv4 жыл бұрын

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

  • @kevalmehta1058
    @kevalmehta10584 жыл бұрын

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

  • @adriancelis9691
    @adriancelis96915 жыл бұрын

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

  • @internetdrew
    @internetdrew Жыл бұрын

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

  • @Andy_a7
    @Andy_a73 жыл бұрын

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

  • @sql_mike8268
    @sql_mike82684 жыл бұрын

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

  • @RussellTeapot

    @RussellTeapot

    4 жыл бұрын

    _nice_

  • @mdsaimumhossain7878
    @mdsaimumhossain78788 ай бұрын

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

  • @jasonwang-wg8wu

    @jasonwang-wg8wu

    4 ай бұрын

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

  • @maximinus1972
    @maximinus1972 Жыл бұрын

    Started weird (but in a good way) and ended up being maybe the best programming tutorial I've seen.

  • @DARKCOP2011
    @DARKCOP20115 жыл бұрын

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

  • @83jdizzle83
    @83jdizzle834 жыл бұрын

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

  • @lbb2rfarangkiinok
    @lbb2rfarangkiinok2 жыл бұрын

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

  • @StevenIvoire
    @StevenIvoireАй бұрын

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

  • @emmanuelevuazeze4729
    @emmanuelevuazeze47294 жыл бұрын

    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

  • @vick7848
    @vick78482 жыл бұрын

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

  • @pmordecki
    @pmordecki11 күн бұрын

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

  • @369jwillow
    @369jwillow3 ай бұрын

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

  • @hoapham7389
    @hoapham73894 жыл бұрын

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

  • @raminmdn
    @raminmdn5 жыл бұрын

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

  • @bonganisingo1717
    @bonganisingo1717Ай бұрын

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

  • @murmelbear8507
    @murmelbear85073 жыл бұрын

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

  • @actrox1
    @actrox1 Жыл бұрын

    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

    Жыл бұрын

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

  • @smoothbeak
    @smoothbeak3 жыл бұрын

    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!

  • @imrana.8370
    @imrana.83704 ай бұрын

    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!

  • @Ville_Jay
    @Ville_Jay2 жыл бұрын

    I just want to let you know that you've spoiled me. I'll never watch another unenthusiastic programming tutorial without wishing you were teaching it. Thank you for actually having fun while teaching!

  • @websterwing8225
    @websterwing82255 жыл бұрын

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

  • @SteinGauslaaStrindhaug
    @SteinGauslaaStrindhaug5 жыл бұрын

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

  • @bryancore
    @bryancore6 ай бұрын

    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

  • @isaachamilton2418
    @isaachamilton2418 Жыл бұрын

    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

  • @lalligood
    @lalligood5 жыл бұрын

    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

    4 жыл бұрын

    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.

  • @yawningpheonix
    @yawningpheonix3 жыл бұрын

    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?

  • @user-gs2xw8gm9g

    @user-gs2xw8gm9g

    3 жыл бұрын

    So true🤣

  • @blessanmathew7893
    @blessanmathew78932 жыл бұрын

    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.

  • @itsme-oc4vl
    @itsme-oc4vl Жыл бұрын

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

  • @ginflorita2148
    @ginflorita21483 жыл бұрын

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

  • @Hyp3rX360
    @Hyp3rX3604 жыл бұрын

    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

  • @spradflex
    @spradflex2 жыл бұрын

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

  • @hellohell-eo7fe
    @hellohell-eo7fe2 жыл бұрын

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

  • @SomeGuyInSandy
    @SomeGuyInSandy5 жыл бұрын

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

  • @BritishMoralHQ
    @BritishMoralHQ5 жыл бұрын

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

  • @meemdizer
    @meemdizer7 ай бұрын

    This video has a 90s sci fi retro gaming vibe... I would spend 100s of hours watching lectures if they were delivered like this

  • @shahnoorraza8514
    @shahnoorraza85142 жыл бұрын

    Never knew sql tutorials can be that Perfect.

  • @kellingc
    @kellingc5 жыл бұрын

    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.

  • @kirbymarchbarcena
    @kirbymarchbarcena5 жыл бұрын

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

  • @andibensisva2155

    @andibensisva2155

    5 жыл бұрын

    Nah, you're a Mariachi. Yiiihaa..

  • @fin4314
    @fin4314 Жыл бұрын

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

  • @mrqmaya
    @mrqmaya2 жыл бұрын

    Finally someone could explain me how to use different JOINs!!! Oh THANK YOU for that!!!

  • @abhishekshah11
    @abhishekshah115 жыл бұрын

    Lmao you sound totally different from python instructor.

  • @damarh

    @damarh

    5 жыл бұрын

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

  • @sajidamoin771
    @sajidamoin7713 жыл бұрын

    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.

  • @BadMouton
    @BadMouton2 жыл бұрын

    This is so wholesome, smiling and learning the whole time

  • @DeejayRobert
    @DeejayRobert2 жыл бұрын

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

  • @xyc8315
    @xyc83157 ай бұрын

    My prof spent an hour, and he succeeded in confusing 80+ students in the lecture. You spent 10 min, and it makes so much sense!

  • @o1techacademy
    @o1techacademy Жыл бұрын

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

  • @user-vv8bp7co1m
    @user-vv8bp7co1m Жыл бұрын

    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

  • @traumegaz
    @traumegaz10 ай бұрын

    literally the most relateable video ive seen on joins. ive been doing databases for about 10 years never had to use joins until recently, i could just write code and extract with seperate queries. or use aliases and take values and insert a function. sometimes you need to extract one value from one sql without furthersteps. thank you so much im not even finished the video and feel like i can go back and conquer the world lol

  • @Coyote8080aru
    @Coyote8080aru Жыл бұрын

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

  • @adamnasra3898
    @adamnasra389818 күн бұрын

    OMG i almost didn't click on the video and thank god i did. the environment you created and the theme of the video is a genius way to set example. the way you talk and the straight-forwardness of the points you send across is just perfect. thank you for a GD amazing vid.

  • @davidekechi4228
    @davidekechi4228 Жыл бұрын

    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

  • @joross8
    @joross82 жыл бұрын

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

  • @cunningchanning3000
    @cunningchanning3000 Жыл бұрын

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

  • @arpitsaxena9249
    @arpitsaxena92492 жыл бұрын

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

  • @kewaltakhellambam7710
    @kewaltakhellambam77102 жыл бұрын

    The sense of humour is golden! love it!

  • @corndoggydogdog
    @corndoggydogdog11 ай бұрын

    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!

  • @PlayLyss
    @PlayLyss4 ай бұрын

    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

    4 ай бұрын

    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.

  • @joaopaulorodrigues8920
    @joaopaulorodrigues89202 жыл бұрын

    Thanks God! Finally I understand JOINS! The best video that I ever seen!

  • @DrinkElectrolytes
    @DrinkElectrolytes Жыл бұрын

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

  • @shanujwilson1204
    @shanujwilson12043 жыл бұрын

    And those light hearted wits are spot on. A tech savvy person like me is enjoying this thoroughly. I cracked at "maybe the other databases will..... JOIN us..".

  • @noymorgenshtein9191
    @noymorgenshtein9191 Жыл бұрын

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

  • @alexis9403
    @alexis94032 жыл бұрын

    As a visual person, that venn diagram explination made it click instantly! Thanks!

  • @kenovate81
    @kenovate81Ай бұрын

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

  • @JorgeEscobarMX
    @JorgeEscobarMX2 жыл бұрын

    This is the best video on JOINS in SQL ever.

  • @loveafinni
    @loveafinni4 ай бұрын

    The best tutorial I've watched on KZread!

  • @Sqlprincess90
    @Sqlprincess903 жыл бұрын

    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!

  • @binoysandeep7407
    @binoysandeep7407 Жыл бұрын

    THIS IS ONE OF THE BEST VIDEOS TO LEARN SQL. FULL MARKS FOR CREATIVITY.

  • @sethforbes2739
    @sethforbes27392 жыл бұрын

    I just stumbled upon the best SQL help guide ever...I can actually *focus*