Data Analyst SQL Interview Question |Self-Joins Explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • Welcome to our deep dive into the world of SQL Self-Joins! 🌍🔍 In this tutorial, we unravel the intricacies of self-joins, a powerful SQL technique often surrounded by confusion. Whether you're a beginner trying to grasp the fundamentals or an intermediate looking to solidify your understanding, this video is tailored for you.

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

  • @Adrian-ey1bv
    @Adrian-ey1bv หลายเดือนก่อน +2

    Making a note to come back to this

  • @ngocbao2436
    @ngocbao2436 6 หลายเดือนก่อน +1

    Thank you

  • @asnaeb-er3wz
    @asnaeb-er3wz 5 หลายเดือนก่อน +4

    I'm having a hard time understanding this one, is there another table with the managers name and the number of reports? Also, when you create e1 and e2 are these instances of the same table? Thx

    • @ladhkay
      @ladhkay 4 หลายเดือนก่อน +4

      Yes hence the self. You're joining the table with itself

    • @asnaeb-er3wz
      @asnaeb-er3wz 4 หลายเดือนก่อน

      Thank you for the clarification! ​@@ladhkay

  • @ganeshsarade9108
    @ganeshsarade9108 11 หลายเดือนก่อน +3

    Select e1.emp_name as employees_name, e2.emp_name as manager_name
    From employee e1 join employee e2
    On e1.manager_id = e2.emp_is

  • @adamsahin6406
    @adamsahin6406 8 วันที่ผ่านมา

    I know you’re trying to do a short video but just a little feedback to you. The people that search these kind of videos up are usually beginners so I would say when you’re explaining it I would explain it with a little more details. You kinda just brushed through the question

  • @ravitejateju
    @ravitejateju 5 หลายเดือนก่อน

    Em labham😂 ayipaye…