compute Clause

Generates summary values that appear as additional rows in the query results.

Syntax

start_of_select_statement
	compute row_aggregate (column_name) 
		[, row_aggregate (column_name)]... 
	[by column_name [, column_name]...]

Parameters

Examples

Usage

See also avg, count, max, min, sum in Reference Manual: Building Block.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Related reference
group by and having Clauses
select