Professional Documents
Culture Documents
CCP505.48 2
Recap
CCP505.48 3
Compute and break command
CCP505.48 4
Break command
Syntax:
BREAK ON <break_column> skip n;
Example:
SQL BREAK ON deptno skip 2;
SQL>select deptno from emp;
CCP505.48 5
Compute command
CCP505.48 6
Syntax:-
BREAK ON <col_name>
Compute function of column.. On break_column..;
CCP505.48 7
Example:
SQL>BREAK ON deptno;
SQL>COMPUTE SUM OF sal ON deptno;
SQL>SELECT deptno,sal FROM emp;
CCP505.48 8
COMPUTE command has no effect without a
corresponding BREAK command.
COMPUTE function of column on break_column;
FUNCTIONS
SUM,MIN,MAX,AVG,STD,VAR,COUNT,NUM
CCP505.48 9
Summary
CCP505.48 10
Quiz
CCP505.48 11
Frequently Asked Questions
CCP505.48 12