I have a problem understanding the situation. When reading an oracle book exists. Here are 3 images that I took from the book.
This is a 1st sql expression using an IN clause, I don't understand it.
This is a 2nd sql expression using the EXISTS clause, I donβt understand why it returns all rows while the DEPTNO> 20 condition exists.
This is the 3rd sql statement, which receives the same rows as the 1st sql operator, this requires an additional join of two tables, and I can not justify it.
I tried google "EXISTS ORACLE", but most of the page explains the difference between EXISTS and IN, but does not explain how EXISTS work. Could you explain this?
sql oracle
lamwaiman1988
source share