Skip to Content
0 likes
Run UPDATE and DELETE in a Transaction First Level: Beginner

Run an UPDATE or DELETE inside a transaction, check the row count and roll back if it is wrong. After this, a missing WHERE no longer costs you the data.

0 likes
Why = NULL Returns Nothing Level: Beginner

See why a comparison with NULL returns no rows and fix it with IS NULL, IS DISTINCT FROM or COALESCE. After this, your WHERE clauses stop dropping rows with missing values.