The SQL EXISTS clause

preview_player
Показать описание
How to use the EXISTS clause in SQL. For beginners.
Рекомендации по теме
Комментарии
Автор

Doug, you have helped me tremendously! When the part about NOT EXISTS was explained, this in itself shed light onto the exact problem I needed to mitigate. Thank you 🙂

vulcanstarlight
Автор

Very clear and to the point. Thanks a lot.

babybob
Автор

Thank you for the explanation. Very helpful.

adreamer
Автор

Thank you very much for such great content.

z
Автор

Fantastic video and exactly what I needed!

MethodOverRide
Автор

Thank you for making it understandable.

hieptrinh
Автор

Finally, someone answered the nagging question in my head, "Why not just use a join?" Thanks Doug!

kc
Автор

Thanks for your lesson that's easy to understand.

drpbekg
Автор

much thanks for your video! great explanation on this topic!

bagindamirza
Автор

Very good explanation. Tank you so much!

VincenzoCorvaglia
Автор

It cleared my doubts. Very very helpful.

debayan
Автор

Thx for the explanation. Do you mean exist will dedup and same with IN statement it will dedup too?

gbting
Автор

i don't understand. in the first example we get ALL CategoryNames from Categories if there is at least one row in subquery ? or only CategoryNames that have products?

sergeykurk
Автор

Thanks a lot. What does the query return if WHERE EXISTS returns false?

aspanon
Автор

can we use where exists. or where not exists with insert query ?

abdulsami
Автор

in subquey, can I select * or any random columns ? does it have to follow any patterns of select in subquery?

rcketRacoon
Автор

May I ask you why Joins are more popular than the Exists clause? At least when I go to interviews or I speak to people they always ask me about Joins but never about the Exists clause

laurafosci
Автор

in the first example (select 17) the exists is acting like a Boolean since the subquery is true so it brings everything in the outer query but in the 2nd example (the correlated query) exists is acting like "in" . how is that?

yeoshuabenzaken