Most Asked SQL JOIN based Interview Question | # of Records after 4 types of JOINs

Поділитися
Вставка
  • Опубліковано 4 жов 2024
  • In this video we will discuss SQL Join based interview question where you need to tell no of records in output when you join 2 tables. This question is very important from interview point of view as well join understanding point of view. It is a must watch concept.

КОМЕНТАРІ • 495

  • @ankitbansal6
    @ankitbansal6  Рік тому +16

    Master the art of SQL with my zero to hero SQL course. The course is focused on data analytics and covers all the advanced concepts starting from scratch.
    www.namastesql.com/course-detail/think-sql-go-from-zero-to-hero-english
    The course contains 2 portfolio projects and a bonus session on Tableau.
    50+ interview problems to crack any SQL INTERVIEW.

  • @PradyutJoshi
    @PradyutJoshi 2 роки тому +44

    No one would have explained this concept better. Please keep making more such videos 🙌

    • @ankitbansal6
      @ankitbansal6  2 роки тому +2

      Thank you for your kind words :)

  • @Saumyagrow
    @Saumyagrow 6 місяців тому +11

    Before watching ur video I feel I know all in Joins but after seeing I m missing the gem thanks man for clearing topic

  • @sandeepreddy7687
    @sandeepreddy7687 Рік тому +4

    I have lot of confusion to answer these kind of questions during interviews, but now I'm crystal clear with these kind of questions and can answer anything from Joins. Thanks sir!! Much appreciated for sharing your knowledge with us.

  • @aakriti_100
    @aakriti_100 2 роки тому +7

    Sir, I surfed internet for these scenario based questions on joins for long & finally got your video. Can't thank you much! This really helped me :)

  • @luckyagrawal6029
    @luckyagrawal6029 2 роки тому +10

    I faced this question in EXL services interview round and couldn't answer it correctly. Thank you Ankit for the wonderful explanation

  • @ritikajaiswal3824
    @ritikajaiswal3824 2 роки тому +3

    I have watched multiple videos for this topic. I even clicked this video thinking what extra thing he can teach me. Now you blow my mind. Very well explained. Now I'm going to binge watch your videos

  • @thepositionalplay5307
    @thepositionalplay5307 2 роки тому +81

    You deserve a lot more recognition man. Keep going on, I'm sure you'll blow up one day. Awesome content btw

    • @ankitbansal6
      @ankitbansal6  2 роки тому +4

      Thank you so much 🙏

    • @anjalishar1829
      @anjalishar1829 2 роки тому

      True!

    • @NITIANShubham
      @NITIANShubham 2 роки тому

      Awesome bro

    • @jinkazama6156
      @jinkazama6156 2 роки тому

      Yaa even , i usually go for practicing SQL in geeksforgeeks but some of my frnds suggest me to this yt channel, this is how ur popularity increasing,
      And ofcourse I will also suggest others for this😌

    • @anushkagoyal1640
      @anushkagoyal1640 Рік тому

      How are blank values handled in the case of different joins ?

  • @apurvasrivastava6394
    @apurvasrivastava6394 5 днів тому

    you made the topic crystal clear with these examples. keep coming up with more such videos.

  • @shivanis6969
    @shivanis6969 Рік тому +4

    Similar questions was asked to me in an interview.. even when I was aware about the concept of joins I wasn’t able to answer in a clarifying and convincing manner.. now I gained the confidence to approach the question… thanks for the video with awesome elaboration and explanation..

    • @ankitbansal6
      @ankitbansal6  Рік тому

      Excellent!

    • @saketsourav_hjp
      @saketsourav_hjp Рік тому

      Exactly even I took this joins lightly but stucked on this in the interview

  • @surajd2338
    @surajd2338 2 роки тому +4

    Post clearing interview, i got to see this question here. Anyways thanks for more clarity. I cleared this question with own logic and got it all clear for all joins. 😀

  • @ankurranjan3218
    @ankurranjan3218 2 роки тому +4

    These are really most asked questions in any top product based company for Data Engineering role. Keep up the good work Ankit. I really appreciate your effort. Well explained too.

  • @sandeepreddy7687
    @sandeepreddy7687 2 роки тому

    I faced this question in broadridge company interview yesterday unable to answer and now I can answer these type of question anytime. Thanks Ankit.

  • @suhassajjan4056
    @suhassajjan4056 2 роки тому +1

    omgaad,this type of questions have hit me hard many times in my interview,thanks for the explaination

  • @MamtaKumari-qu9jr
    @MamtaKumari-qu9jr 2 роки тому +1

    Has been searching for these kind of videos after so many rejection in interviews for the similar kind of scenarios, and finally a great stop here!!!! Thank you so much for the help😊

  • @koushikdey100
    @koushikdey100 2 роки тому

    This is awesome. Last Thursday I was asked this question by the interviewer from an renowned organization.

  • @uttamx2016
    @uttamx2016 11 місяців тому

    good exercise to learn join output , which I used to confuse in past 9 years .Now I am confident .
    Thank you so much

  • @ramyasrielluri3243
    @ramyasrielluri3243 Місяць тому

    Your explanation is very well very clear if any one ask me in sleep also i will tell
    .now it is very clear i have 2.5 years of experience but didnt get this much of clarity till now. .now its clear .thanks alot🎉

  • @sushmamc8904
    @sushmamc8904 2 роки тому +1

    Just now I got this question in my interview ... concepts got cleared.. thank you

  • @MukarramJahmj
    @MukarramJahmj 2 роки тому +1

    Thank you so much man.! Have been struggling from months to understand this and you cleared it out in 14 mins. Thank you again.!

  • @deepshikhamishra9216
    @deepshikhamishra9216 6 місяців тому

    Many times I got stuck with null values as I used to see these null in the output, Aaj jake clear hua hai ye, Thanks a ton 🙏

  • @MG-hc4rr
    @MG-hc4rr 2 роки тому +15

    Been there facing similar scenarios in interviews..Really an awesome video😍✨great learning for me..💪thanks for clearing these concepts so well 🙌 really helpful 🌟

  • @AlbouryNdiaye-ro8qz
    @AlbouryNdiaye-ro8qz 10 місяців тому

    This tutorial is an excellent resource among the many explanations (videos, books, articles) I have seen on this topic. It is the most helpful. Thank you very much, Ankit

    • @ankitbansal6
      @ankitbansal6  10 місяців тому

      Glad it was helpful! Keep watching 😊

  • @bandhammanikanta
    @bandhammanikanta 2 роки тому +1

    NULL != NULL. Thanks for sharing. The explanation was very good that I could consume all you explained.

  • @hallowedshubh5073
    @hallowedshubh5073 2 роки тому +2

    Wanting to switch my career and get into Data Engineering. Visited your channel from LinkedIn. This is top rated content from which I would love to gain knowledge. Thanks a lot

  • @deepthimurali962
    @deepthimurali962 2 роки тому +3

    Going through interviews currently and faced similar questions! Thank you ankit ✅

  • @sahilkushwaha7490
    @sahilkushwaha7490 Рік тому

    Encountered very similar questions in my interview. I cracked interview for Data analyst role in big firm, Thank you for explaining clearly. Kudos to you

  • @sonip472
    @sonip472 2 роки тому +1

    Omg, finally all my confusion around such questions has resolved, thanks a lot 👍 you are awesome 🙂

  • @inderpanda1
    @inderpanda1 Рік тому

    This is the best explanation video I have seen till now on JOINS 👍👍

  • @spark9_
    @spark9_ 11 місяців тому +1

    Excellent explanation, and very relevant. Got a similar question (also included cross join) for a data engineer interview

  • @avi8016
    @avi8016 10 місяців тому

    I was asked this question in interview yesterday, thanks to your video i was able to solve it.
    Thankyou 🙏

  • @esr58
    @esr58 2 роки тому

    Very thankful🙏 sir.... Before this I counting one by one but now multiple of matching record is easy😎 thank you🙏

  • @darpexplained79
    @darpexplained79 Рік тому

    Thank you so much sir for explaining this concept i failed an interview earlier due to this question but now I am aware of the correct methodology

  • @abhishekagrawal5237
    @abhishekagrawal5237 2 роки тому +4

    Thank you for explaining in a such a simple manner. Big thanks and cheers Sir, going to binge watch the entire SQL series. :)

  • @shubhamjaiswal3799
    @shubhamjaiswal3799 2 роки тому

    Really a very helpful video this was asked to me in Barclays interview.
    Thank you for posting this video.

  • @Kanchan-m5c
    @Kanchan-m5c 9 місяців тому

    Thank you so much for such a crystal clear explanation. Lost an opportunity because of this. Will prepare using your playlist and update once I land a job.🎉

  • @sudan9393
    @sudan9393 3 місяці тому

    thanks for covering all possible cases, this was missing from other videos about this question. This was very useful!!

  • @pratiksingh9480
    @pratiksingh9480 Рік тому

    This is really helpful to those going for SQL interviews.

  • @vrishabhbhonde6899
    @vrishabhbhonde6899 Місяць тому

    Thanks for the video ❤❤. I have been asked this question in one of my interview and unfortunately I got bit confused as I was unaware of this video that time.

  • @kavitapawar2524
    @kavitapawar2524 2 роки тому +1

    very helpful. I am for this video, thank you for sharing.

  • @anshulgupta1611
    @anshulgupta1611 Рік тому

    wow.. how you made this simple...thanks. even 10 year student can learn from this method now, simple and clear.

  • @0SIGMA
    @0SIGMA Рік тому +1

    This was asked in my TCS interview for data analyst. I answered wrong but I was soo confident on my answer that they liked it and I ended with offer letter. Although I rejected it for a better one )

  • @bhupendrasharma386
    @bhupendrasharma386 2 роки тому

    Interview had asked this question from me, few hour ago for etl developer profile, thanks for explaining

  • @aanavourjoy
    @aanavourjoy Рік тому

    Really a great explanation of these questions.. hatss off brother.thanks..

  • @mohanbabu3030
    @mohanbabu3030 Рік тому

    One of the best video on joins i have seen till now, great explanation,👏

  • @Urmilavijay20
    @Urmilavijay20 Місяць тому

    This Question was asked in Lenskart Interview and I couldn't answer. Thanks for the inputs

  • @vivekkumarsingh9009
    @vivekkumarsingh9009 2 роки тому

    I regret not coming across this video before. Great work. Thank you

  • @razx2009
    @razx2009 14 днів тому

    in JOINS sql takes each records from 1st table with whatever condition mentioned in ON clause and keeps checking every records in 2nd table till the end.
    so suppose i have 3 rows in 1st table and 10 rows in 2nd table then it will check 30 times 3x10. thats how joins work whether you use INNER, LEFT, RIGHT, OUTER, SELF

  • @dollysingh9364
    @dollysingh9364 2 роки тому

    I was looking for this solution from so long . Finally I got the solution

  • @shashankchandramouli34
    @shashankchandramouli34 Рік тому

    Thanks a lot. The exact same questions were asked to me in an interview. Thanks to you I was able to answer this. Your explanation is so simple that even someone who does not know sql can understand . Please keep doing more videos like this .

  • @sunitasahu307
    @sunitasahu307 2 роки тому +1

    Great Explanation covering all scenarios, it's really helpful

  • @bhumikasoni361
    @bhumikasoni361 3 місяці тому

    Awesome video, It gives good clarity with easy explanation

  • @ramathasramalingam6659
    @ramathasramalingam6659 10 місяців тому

    Very Clear explanation..Thanks, Sir

  • @venkateshwaranp5130
    @venkateshwaranp5130 2 роки тому

    Thanks for clear and easy to understand the concepts of Joins Quickly

  • @sudhanshubhardwaj9325
    @sudhanshubhardwaj9325 6 місяців тому

    You’re are awesome at explaining complex concepts bhaiya❤
    Thanks a lot for sharing such sessions

  • @Slantz00
    @Slantz00 2 роки тому

    This is a great video that answered a question I was asked during an interview.
    I appreciate your sharing this video

  • @mohammadmahaboobjani4280
    @mohammadmahaboobjani4280 Рік тому

    Thank you for explaining joins in detail and simple manner for different scenarios. Its a great learning for me. really helpful.👍

  • @PratikPictures
    @PratikPictures 2 роки тому +1

    Thank you so much for your simplicity in teaching..It really helps in boosting our confidence while learning something new

  • @NaveenKumar-fq4sb
    @NaveenKumar-fq4sb Рік тому

    Super trick sir ....even my trainer didn't told like u..

  • @cheequsharma7391
    @cheequsharma7391 Рік тому

    Very good example and explanation. 👍

  • @nikhilchoudhary7860
    @nikhilchoudhary7860 Рік тому

    Finally this concept is clear because of you Brother🤗. Thank you Brother 🤝

  • @yateshpatil866
    @yateshpatil866 Рік тому

    Amazingly explained…Ty so much👍🏻

  • @mohammeddanish8624
    @mohammeddanish8624 9 місяців тому

    I found the way and the technique much effective as well as easier. Thanks a lot!

  • @yogitashinde2036
    @yogitashinde2036 2 роки тому +1

    Thank You So Much For This Concept😊.

  • @RajChoudhary-jm9io
    @RajChoudhary-jm9io 2 роки тому

    Thanks Ankit, today this question was asked in my interview. Thank god I'm following your channel. More power to you!!

  • @yashitarelwani4404
    @yashitarelwani4404 Рік тому

    Thank you Ankit Sir. Such an amazing video. Really helpful and got all my confusions gone.

  • @shubh0707
    @shubh0707 2 роки тому

    yesterday i was asked same question. i made few mistake .but now i feel well prepared ..thnks :)

  • @DeepshikhaMeena-g2i
    @DeepshikhaMeena-g2i 15 днів тому

    Very well explained

  • @harish1838
    @harish1838 10 місяців тому

    Came here after seeing your recent linkedin post completely enjoying it

  • @ravivarma8988
    @ravivarma8988 Рік тому

    This is the best free software Ive seen. Respect.

  • @varunmonga8932
    @varunmonga8932 6 місяців тому

    Hi Ankit sir, can you please make one video on joins in which 1)after joins there is a where condition also with multiple conditions with "and" and "or"
    2)after joins filtering with where clause and "and" clause

  • @nagendras9696
    @nagendras9696 4 місяці тому

    Great explanation Sir 🥳🥳🥳

  • @shakthimaan007
    @shakthimaan007 2 місяці тому

    This is awesome

  • @RAJANKUMAR-tl9xc
    @RAJANKUMAR-tl9xc 2 роки тому

    Thank you so much bro... This is probably the best explanation I could find till now 😍❤️

  • @semikolon4229
    @semikolon4229 2 роки тому

    This video is pure GOLD.

  • @joeljx007
    @joeljx007 11 місяців тому

    This was asked in my interview and I made mistakes. For sure, next time I get asked this question, I won't be making a mistake. Thanks Ankit :)

  • @hijamgyaneswarsingh879
    @hijamgyaneswarsingh879 2 роки тому

    Thankful for this video to regain my concept much more clear. Please do upload much more videos.Your explaination is crystal clear...

  • @satheshkumar8120
    @satheshkumar8120 Рік тому

    i am searching this from last years now i got the solutions

  • @divyasworld9862
    @divyasworld9862 2 роки тому

    first time i understood why full joins retiurns nulls...thanks Man :)

  • @Ak12345-g
    @Ak12345-g 11 місяців тому

    I have fair understanding of joins by this ankit❤

  • @madhumms
    @madhumms 2 роки тому

    Most helpful with these scenarios. Thanks a lot

  • @devarajanmurugesan3142
    @devarajanmurugesan3142 Рік тому

    Oh man. You are awesome. You have explained the joins with simple multiplication and addition concept. It gives good confidence to work with join. I can't forget this concept. Appreciate your work and time

  • @hpaolani
    @hpaolani 2 роки тому +2

    I like the concept you use for explaining and illustrating SQL questions . Awesome job man !

  • @adi_sekar
    @adi_sekar Рік тому

    Excellent video, thank you!

  • @mayankdipesh9705
    @mayankdipesh9705 Рік тому

    watching this after going 0 in interview ! thanks Ankit for posting

  • @abhi1994100
    @abhi1994100 2 роки тому

    great video, finally found a video on this question and concept

  • @nishantverma2966
    @nishantverma2966 Рік тому

    Thanks for this video I had some confusion in it and you have explained everything 🙏🙏

  • @pratibhamishra869
    @pratibhamishra869 2 роки тому

    Absolutely perfect video on this topic.

  • @mallikarjunpatil7553
    @mallikarjunpatil7553 Рік тому

    Great explanation
    Can answer any type of join scenarios

  • @vinayakacn401
    @vinayakacn401 2 місяці тому

    nice video, very informative and precise, thanks keep up the work

  • @sudheerkumar-tp1mg
    @sudheerkumar-tp1mg Рік тому

    Recently I came across one interview and failed but given very good clarification

  • @priyankathakare2760
    @priyankathakare2760 Рік тому

    Very well explained.thanks

  • @NitinMohanSharmanms
    @NitinMohanSharmanms 2 роки тому

    Thank you sir...i am really thankful and appreciate your efforts..keep up the spirit

  • @tusharhatwar
    @tusharhatwar Рік тому

    Great explanation Sir 👍
    Thanks a lot

  • @vikramr9437
    @vikramr9437 2 роки тому

    Excellent video sir, I got same question in interview.

  • @SONU1476
    @SONU1476 7 місяців тому

    Thank you Cleared the doubts ..
    Wonderful Man 😊

  • @cajonnoob
    @cajonnoob 2 роки тому

    I have been in this scenario, thanks for explaining in detail

  • @pranaykukadkar7092
    @pranaykukadkar7092 Рік тому +1

    The real content of SQL

  • @ManaTelugodey
    @ManaTelugodey 6 місяців тому

    Great explanation..Thanks

  • @nishas3527
    @nishas3527 Рік тому

    Such a simple and great explanation! Thank you !!