← Back to archive

Stdle #17 · nulls · 2026-06-23

What does this SQL snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

CREATE TABLE t(id INTEGER);
INSERT INTO t VALUES (1),(2),(3);
SELECT COUNT(*) FROM t WHERE id NOT IN (1, NULL)
NULLs
4 attempts left

Answer & explanation