FIND YOUR NEXT FEW LINES

Results for “ROW_NUMBER”

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

1221 snippets foundClear filters
CGetting Started

Print a number with two decimal places

C: Format a small decimal value consistently for display.

C✓ Tested
Arduino / CSerial protocols

Read a decimal number from serial input

Arduino / C: parseFloat parses a signed decimal value from the input stream.

Arduino / C✓ Tested
PythonDates & time zones

Read an ISO week number

Python: Use isocalendar because ISO week years can differ from calendar years near January.

Python✓ Tested
JavaDates & time zones

Read an ISO week year and week number

Java: Use ISO week fields together because a week can belong to the previous calendar year.

Java✓ Tested
JavaScriptUTC date operations

Read an ISO-style weekday number

JavaScript: Convert Sunday from zero to seven when using Monday-through-Sunday numbering.

JavaScript✓ Tested
TypeScriptUTC date operations

Read an ISO-style weekday number

TypeScript: Convert Sunday from zero to seven when using Monday-through-Sunday numbering.

TypeScript✓ Tested
PythonJSON & CSV

Read CSV rows as dictionaries

Read a CSV file using its header row as dictionary keys, so each column can be accessed by name.

csv✓ Tested
PowerShellText & data

Read rows from CSV text

Parse CSV into objects with named properties.

CSV✓ Tested
SQLWindow analytics

Read the next row’s value

SQL: LEAD reads a later ordered row without a self join and supports a fallback at the end.

SQL✓ Tested
SQL ServerWindow analytics

Read the next row’s value

SQL Server: LEAD reads a later ordered row without a self join and supports a fallback at the end.

SQL Server✓ Tested
PostgresWindow analytics

Read the next row’s value

Postgres: LEAD reads a later ordered row without a self join and supports a fallback at the end.

Postgres✓ Tested
SQLiteWindow analytics

Read the next row’s value

SQLite: LEAD reads a later ordered row without a self join and supports a fallback at the end.

SQLite✓ Tested