Results for “insert”
Small, practical examples. Search by task or narrow things down below.
Enforce a relationship between two columns
Postgres: A row-level CHECK can require a start value to be no greater than an end value.
Postgres✓ Tested
Enforce a relationship between two columns
SQLite: A row-level CHECK can require a start value to be no greater than an end value.
SQLite✓ Tested
Enforce uniqueness with a dedicated index
SQL: A unique index rejects a duplicate combination independently of query plans.
SQL✓ Tested
Enforce uniqueness with a dedicated index
SQL Server: A unique index rejects a duplicate combination independently of query plans.
SQL Server✓ Tested
Enforce uniqueness with a dedicated index
Postgres: A unique index rejects a duplicate combination independently of query plans.
Postgres✓ Tested
Enforce uniqueness with a dedicated index
SQLite: A unique index rejects a duplicate combination independently of query plans.
SQLite✓ Tested
Expose a reusable filtered view
SQL: A view stores a query definition rather than a snapshot of its rows.
SQL✓ Tested
Expose a reusable filtered view
SQL Server: A view stores a query definition rather than a snapshot of its rows.
SQL Server✓ Tested
Expose a reusable filtered view
Postgres: A view stores a query definition rather than a snapshot of its rows.
Postgres✓ Tested
Expose a reusable filtered view
SQLite: A view stores a query definition rather than a snapshot of its rows.
SQLite✓ Tested
Filter aggregate groups
Keep only categories with multiple products.
HAVING✓ Tested
Filter rows before grouping
SQL: WHERE limits the rows contributing to the aggregate; it differs from filtering completed groups with HAVING.
SQL✓ Tested