Table of Contents

SQL Plus - Compute

About

COMPUTE in combination with the BREAK command, calculates and prints summary lines using various standard computations.

Syntax

COMP[UTE] [function [LAB[EL] text] ...
   OF {expr|column|alias} ...
   ON {expr|column|alias|REPORT|ROW} ...]

Summary function

The following summary function are available:

Example

See SQL Plus - Formatting Reports

Grand Total

BREAK ON REPORT
COMPUTE SUM OF "Segment Block" ON REPORT

How to

list all compute definition

Enter COMPUTE with no clauses to list the current COMPUTE definition.