Results for “row_number”
Small, practical examples. Search by task or narrow things down below.
Grow a vector
Grow a vector in a complete Rust program using the standard library.
Rust✓ Tested
Grow an allocation without losing it on failure
C: Assign realloc to a temporary pointer so the original allocation remains available if growth fails.
C✓ Tested
Insert a row with named columns
Add a record without relying on implicit column order.
INSERT✓ Tested
Inspect deleted rows
Return values from the rows a DELETE removes.
DELETE✓ Tested
Join related rows from two tables
SQL: Match a category key to its display label with an explicit join condition.
SQL✓ Tested
Join related rows from two tables
SQL Server: Match a category key to its display label with an explicit join condition.
SQL Server✓ Tested
Join related rows from two tables
Postgres: Match a category key to its display label with an explicit join condition.
Postgres✓ Tested
Join related rows from two tables
SQLite: Match a category key to its display label with an explicit join condition.
SQLite✓ Tested
Join rows in a chosen order
Aggregate text with STRING_AGG and WITHIN GROUP.
STRING_AGG✓ Tested
Join text rows in a chosen order
Combine values using string_agg.
string_agg✓ Tested
Keep parent rows while filtering joined children
SQL: Put a child filter in ON when unmatched parents must remain in the result.
SQL✓ Tested
Keep parent rows while filtering joined children
SQL Server: Put a child filter in ON when unmatched parents must remain in the result.
SQL Server✓ Tested