Be Careful When Using “NOT IN” in SQL

+ 3 simple solutions to make sure you’re not caught out

Matt Chapman
Towards Data Science
5 min readDec 15, 2023

--

Recently, I came across Benjamin Thürer’s excellent article:

…in which he cautions us about using the NOT IN SQL clause in BigQuery.

--

--