FIND YOUR NEXT FEW LINES

Results for “if”

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

946 snippets foundClear filters
SQLiteSubqueries & ranked selection

Return all rows tied for the maximum in a group

SQLite: An equality comparison with a grouped maximum retains ties rather than choosing one arbitrary row.

SQLite✓ Tested
PostgresRows & writes

Return an inserted row

Read generated data directly from INSERT.

RETURNING✓ Tested
SQLReporting & grouped calculations

Return zero for a sum over no rows

SQL: SUM produces NULL for an empty input; COALESCE supplies the desired reporting default.

SQL✓ Tested
SQL ServerReporting & grouped calculations

Return zero for a sum over no rows

SQL Server: SUM produces NULL for an empty input; COALESCE supplies the desired reporting default.

SQL Server✓ Tested
PostgresReporting & grouped calculations

Return zero for a sum over no rows

Postgres: SUM produces NULL for an empty input; COALESCE supplies the desired reporting default.

Postgres✓ Tested
SQLiteReporting & grouped calculations

Return zero for a sum over no rows

SQLite: SUM produces NULL for an empty input; COALESCE supplies the desired reporting default.

SQLite✓ Tested
CSSGetting Started

Reuse a CSS custom property

CSS: Learn how to reuse a CSS custom property in a complete browser example.

CSS✓ Tested
SQL ServerTransactions & tables

Roll back a trial update

Group a change in a transaction and undo it.

transaction✓ Tested
CArray transformations

Rotate a nonempty array left by one element

C: Save the first item before shifting the remaining elements.

C✓ Tested
CSSPositioning & stacking

Rotate a rectangular box around its center

CSS: A ninety-degree transform swaps the visible bounding-box width and height.

CSS✓ Tested
CSSVisual treatment & accessibility

Round a box’s corners

CSS: Border-radius changes the corner shape without changing its rectangular layout dimensions.

CSS✓ Tested
CSSGetting Started

Round a panel’s corners

CSS: Learn how to round a panel’s corners in a complete browser example.

CSS✓ Tested