FIND YOUR NEXT FEW LINES

Results for “Pipes & formatting”

Small, practical examples. Search by task or narrow things down below.

523 snippets foundClear filters
SQL ServerRelationships & missing data

Pair employees with their managers

SQL Server: Alias a table twice to represent two different roles in one relationship.

SQL Server✓ Tested
PostgresRelationships & missing data

Pair employees with their managers

Postgres: Alias a table twice to represent two different roles in one relationship.

Postgres✓ Tested
SQLiteRelationships & missing data

Pair employees with their managers

SQLite: Alias a table twice to represent two different roles in one relationship.

SQLite✓ Tested
SQLText cleanup & matching

Place missing values after known values portably

SQL: A CASE sort key controls NULL placement without relying on engine-specific defaults.

SQL✓ Tested
SQL ServerText cleanup & matching

Place missing values after known values portably

SQL Server: A CASE sort key controls NULL placement without relying on engine-specific defaults.

SQL Server✓ Tested
PostgresText cleanup & matching

Place missing values after known values portably

Postgres: A CASE sort key controls NULL placement without relying on engine-specific defaults.

Postgres✓ Tested
SQLiteText cleanup & matching

Place missing values after known values portably

SQLite: A CASE sort key controls NULL placement without relying on engine-specific defaults.

SQLite✓ Tested
SQLWindow analytics

Rank tied scores with competition gaps

SQL: RANK leaves a gap after tied rows, unlike DENSE_RANK.

SQL✓ Tested
SQL ServerWindow analytics

Rank tied scores with competition gaps

SQL Server: RANK leaves a gap after tied rows, unlike DENSE_RANK.

SQL Server✓ Tested
PostgresWindow analytics

Rank tied scores with competition gaps

Postgres: RANK leaves a gap after tied rows, unlike DENSE_RANK.

Postgres✓ Tested
SQLiteWindow analytics

Rank tied scores with competition gaps

SQLite: RANK leaves a gap after tied rows, unlike DENSE_RANK.

SQLite✓ Tested
SQLWindow analytics

Rank tied scores without gaps

SQL: DENSE_RANK assigns equal ranks to ties and increments by one for the next distinct score.

SQL✓ Tested