IN versus EXISTS - are they the same?

Опубликовано: 17 Октябрь 2024
на канале: Database by Doug
5,680
108

Intermediate level video on Structured Query Language.
The IN and EXISTS operators are sometimes viewed as "equivalent". They serve a similar purpose and are sometimes used to produce the same records. However, their underlying mechanisms are quite different. This example using the Northwind database demonstrates how NULLs are treated differently when using NOT IN versus NOT NULL.