SQL Relational And Null Discipline

Guides the core correctness floor of SQL — query results are unordered sets with no defined order unless you write ORDER BY, NULL means "unknown" and propagates UNKNOWN through every comparison and arithmetic expression, and WHERE/HAVING/ON keep only rows that evaluate to TRUE while CHECK rejects only rows that evaluate to FALSE (so UNKNOWN passes). Auto-invokes when writing or editing any WHERE/HAVING/ON/CHECK predicate, comparisons against possibly-null columns, NOT IN/`not equal to`/`!=`, COUNT/SUM/AVG over nullable columns, GROUP BY/ORDER BY/UNIQUE on nullable columns, or on "why does my query return no rows" / "why is my average wrong" / "handle NULL" requests. The policy root every other SQL skill routes back to.

ctoth 617da7d 3 files · 33.6 KB Updated

File contents

ctoth/sql-skills-plugin/tree/main/plugins/sql/skills/sql-relational-and-null-discipline commit 617da7d9be

Frequently asked questions

npx skillmds@latest add ctoth/sql-relational-and-null-discipline