FIND YOUR NEXT FEW LINES

Results for “SUM”

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

75 snippets foundClear filters
TypeScriptCollections & records

Sum typed values with reduce

Accumulate numeric array elements.

reduce✓ Tested
SQLExpressions & aggregates

Sum values per category

Calculate a grouped total.

SUM✓ Tested
C++Numbers & algorithms

Sum vector values

Use std::accumulate with a wide initial value.

C++✓ Tested
GitInspecting the working tree

Summarize added and removed lines numerically

Git: Numstat provides tab-separated counts suitable for processing.

Git✓ Tested
Arduino / CEEPROM & program memory

Validate a small stored payload with a checksum

Arduino / C: Store a checksum with the payload and reject a changed byte.

Arduino / C✓ Tested
Linux CommandsArchive integrity & packaging

Verify a file against a checksum manifest

Linux Commands: Use sha256sum -c with a manifest obtained from a trusted source.

Linux Commands✓ Tested
SQLGetting Started

Add values across several rows

SQL: Use SUM to calculate a total quantity.

SQL✓ Tested
SQL ServerGetting Started

Add values across several rows

SQL Server: Use SUM to calculate a total quantity.

SQL Server✓ Tested
PostgresGetting Started

Add values across several rows

Postgres: Use SUM to calculate a total quantity.

Postgres✓ Tested
SQLiteGetting Started

Add values across several rows

SQLite: Use SUM to calculate a total quantity.

SQLite✓ Tested
PostgresWindows & text

Calculate a running total

Accumulate values in row order.

window✓ Tested
C++Sequence algorithms

Calculate cumulative totals

C++: partial_sum writes the sum of each input prefix to the output sequence.

C++✓ Tested