SQL Tutorial #13 - SQL EXISTS and NOT EXISTS Operator

Поділитися
Вставка
  • Опубліковано 13 гру 2024

КОМЕНТАРІ • 36

  • @eugenesumanov285
    @eugenesumanov285 Рік тому +10

    Hello, sir. In the first case (4:15) it really works as a true/false condition. No matter what is in the subquery, if it is true, then the main query is executed, and it returns all values from the table. While in the second case (6:46), the result of the main query is limited by the values that are returned by the subquery. Why is that? Please help me understand.

    • @ravindravyasit123
      @ravindravyasit123 9 місяців тому +2

      If output is true then it return all rows of first relation which is the first case in above video.....
      If output is resultset then left side query output is filter with result of sub query...
      Hope it solve your doubt

    • @noor4937
      @noor4937 8 місяців тому

      @@ravindravyasit123 In the first case also there is a result set(1 row) for the sub query but the main query is not limited by it.

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

      please watch this video and your doubt will be cleared. It is related to how nested subquery and correlated subquery work. In the case of exists/not exists, first the outer query runs row by row and for every row of the outer query, the inner query has to run those many times (basically the subquery is not just executed once). ua-cam.com/video/wA9GJZcB618/v-deo.html&ab_channel=GateSmashers

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

      @@noor4937 the second example is of a corelated subquery(2 tables in subquery with one table also being present in the outside query). in that case the only rows that meets condition are returned. the first case is a simple subquery where the inside and outside query have same table

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

    Great Explanation. Thank you.

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

    Can I have the sample database which you are using here in the example?

  • @Vishal-te5in
    @Vishal-te5in Місяць тому

    Hello Sir, I was able to understand it thank you

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

    thank you so much. After 2 minutes of video I understood everything

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

    thank you so much for brief lecture sir!

  • @chaitanayasethi
    @chaitanayasethi Рік тому +2

    Hi sir,
    The explanation overall is good.
    But one doubt that I am not able to figure out yet, in which video did you create the Orders table and how is a primary column of table Employees linked with that of orders?

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

    Beautifully Explained! Thank you

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

    really helpful, clean explain and easy to understand!! thank you sir❤

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

    Thanks lot it's very helpful

  • @user-rl5ke2ky6h
    @user-rl5ke2ky6h 9 місяців тому

    Thank you so much ❤

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

    Excellent explanation sir

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

    Thanks Sir. You have made it really lucid.

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

    thanks for ur video

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

    Really well explained sir...thank you🎉

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

    Thanks you sir i can easily understand please do more vedioes

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

    Could you please share with us the used database?

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

    Useful 👍

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

    do you use EXISTS only in a subquery or there are other use cases? thanks

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

    thank you

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

    Amazing tutorial thank you so much it was helpful

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

    If I execute the last example subquery seperately we are not getting any values but with WHERE EXISTS we are getting values. Can you please Explain?

  • @SandeshKandukuri
    @SandeshKandukuri День тому

    Explaining exists and not exists by using select * is the worse combination for students to understand

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

    right...what right???

  • @akshaychilwal7003
    @akshaychilwal7003 Рік тому +3

    Haan sir, kr diya dislike and report.
    One of the worst explanation I have seen on the topic. You just read the definition and did not show the step-by-step execution. Lean to teach.

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

      I wish you could have little patience to wait and see the full video 😀, it contains demo as well, please have patience if you want to learn something. Anyways, thanks for your awesomeness and support without even watching the full video 😀