Results for “base”
Small, practical examples. Search by task or narrow things down below.
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
Expand a JSON array into rows
Iterate array elements using a table-valued function.
json_each✓ 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
Extract a known substring
PowerShell: Substring uses a zero-based starting index and a character count.
PowerShell✓ Tested
Extract part of a string
Use one-based positions with substr.
substr✓ Tested
Filter aggregate groups
Keep only categories with multiple products.
HAVING✓ Tested