MySQL SELF JOINS are ... ughhh

Sdílet
Vložit
  • čas přidán 4. 11. 2022
  • #MySQL #tutorial #course
    00:00:00 example 1
    00:05:44 example 2
    00:00:00 conclusion
    SELECT a.first_name, a.last_name,
    CONCAT(b.first_name," ", b.last_name) AS "reports_to"
    FROM employees AS a
    INNER JOIN employees AS b
    ON a.supervisor_id = b.employee_id;

Komentáře • 42

  • @BroCodez
    @BroCodez  Před rokem +15

    SELECT a.first_name, a.last_name,
    CONCAT(b.first_name," ", b.last_name) AS "reports_to"
    FROM employees AS a
    INNER JOIN employees AS b
    ON a.supervisor_id = b.employee_id;

  • @israelrodriguez331
    @israelrodriguez331 Před 7 měsíci +35

    Your explanations are on point. My professor is pretty much like “Figure it out yourself, look at the PPT” SMH.

    • @MrTekniqs
      @MrTekniqs Před 2 měsíci +4

      Most of my college education right here. “Hey guys we’re going to learn Java. Here’s a piece of paper with some code. I’m a math teacher good luck.”

  • @MrBicholino
    @MrBicholino Před 9 měsíci +18

    Best self join explanation I've found so far. 10/10!!!

  • @dankprogrammingmemes7807

    Thanks a ton for making this series! Subbed!!

  • @joe-hd3uv
    @joe-hd3uv Před 9 měsíci +3

    Dude this was so incredibly helpful. Thank you!

  • @jina5920
    @jina5920 Před 4 měsíci +7

    You're the best teacher ever !!!! I really appreciate your work for us!!!

  • @ubaidullah6744
    @ubaidullah6744 Před 11 měsíci +3

    Its a great video easy to understand Thank you, some people over explain things that makes it over complicated but after watching this video it looks pretty simple now.

  • @Lulu-ck3ji
    @Lulu-ck3ji Před rokem +1

    a chad in explaining. Thanks much!

  • @johnvak7390
    @johnvak7390 Před 5 měsíci +1

    thank you for explaining!

  • @ShaikMoAbdullah
    @ShaikMoAbdullah Před 4 měsíci +1

    This was awesome. Thank you

  • @Blujay188
    @Blujay188 Před rokem

    EXCELLENT EXPLANATION ! thank you

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

    Your explanation is awesome!

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

    Thanks! joins were pain until I found you

  • @callofdutymlgversion910

    truly and bro coder appreciate it bro

  • @edwardtattersfield3033
    @edwardtattersfield3033 Před rokem +3

    Bro, nice vid. ONE QUESTION! What keyboard shortcut are you using to track to the beginning of a word? As you have done it makes more sense for me to type the column and THEN the table even though sql syntax requires this info in the opposite order. The shortcut would make it easier - i cant find it online.🙏

    • @justinprice1929
      @justinprice1929 Před rokem +4

      He's probably using Ctrl+'any-arrow-key' for PC, and it would be Command+'any-arrow-key' for Mac.

  • @ExiltedOne
    @ExiltedOne Před rokem

    thank you that was great!

  • @methanesulfonic
    @methanesulfonic Před rokem +5

    I'm pretty sure my teacher will somehow over-complicate this course if they ever teach this lol.

  • @beckybioh8695
    @beckybioh8695 Před 22 dny +1

    Bro, can you do an Oracle DBMS series too😍...your videos are life savers! God bless you!

  • @dolodoowop1971
    @dolodoowop1971 Před rokem

    SO helpful.. thank you !

  • @nikoprieto1
    @nikoprieto1 Před rokem

    How can i change my screen to see the same way you do?
    Pleaseeeee.
    Thanks for your video!

  • @mezomezo8718
    @mezomezo8718 Před rokem

    I have a question which making me not getting this whole self join thing why couldn't we refer our join condition on table A customer ID =table 2 manager ID why did we have to refer to the foreign key of the first table instead of the primary key.your answer is greatly appreciated.

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

    best video on self join

  • @hiwab41
    @hiwab41 Před rokem +2

    nice BRO!

  • @vishwanathchintala2000
    @vishwanathchintala2000 Před 9 měsíci

    you are amazing

  • @MaedehDehghan-vx6hx
    @MaedehDehghan-vx6hx Před 3 měsíci

    that was practical. thanks

  • @omega_sine
    @omega_sine Před rokem +4

    I never knew Mrs. Puff’s first name was Poppy 🤯

  • @CodeWithDF
    @CodeWithDF Před rokem +2

    u are great but can u do tut for website full course

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

    i am a beginner... We have to create employee ids such a way that when we write the code, it has to point the correct way right? I mean what if we made Mr. Squidward's employee id 6?

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

    super easy and helpful

  • @user-gh1tk2dc3l
    @user-gh1tk2dc3l Před 7 měsíci

    Thanks Bro

  • @mehavenothing7078
    @mehavenothing7078 Před rokem

    i want to ask a question, why after we use the inner join, on a.supervisor_id = b.employees_id; the sandy name will repeated a few times, i still didnt get why

    • @user-of9pw6ql4m
      @user-of9pw6ql4m Před 8 měsíci

      Because she is a supervisor of multiple people. You're looking at each row of the left table and see who is the supervisor for each employee in that table which is Sandy except for Sandy herself. Her supervisor is Crabs.

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

    I knew from the title (self joins are...ughhh) 😆 it's not as usual.

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

    bro need full join also bro please.........

  • @princeakinolaoluwagbemigag1750

    Top 10

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

    Let's be honest.. Krabs isn't gonna comp ANYONE a free meal.

  • @PythonicMind
    @PythonicMind Před rokem +1

    First

  • @tsunningwah3471
    @tsunningwah3471 Před rokem

    bilibili

  • @alphaomegathegreatest7948

    Jesus Christ was lifted in the cross to pay for our sins, everyone who believes in him shall have eternal life John Cap. 3 | NIV-EN
    14 Just as Moses lifted up the snake in the wilderness, so the Son of Man must be lifted up,
    15 that everyone who believes may have eternal life in him.”