Formatting SQL*Plus Reports Part 2
Computing Summary of a column With combination of BREAK and COMPUTE command you can do several calculations on SQL reports using sql*plus. Remember the COMPUTE command has no effect without a corresponding BREAK command. Below is the lists of compute functions of Sql*plus and their effects. 1)SUM: Sum of the values in the column. 2)MINIMUM: Minimum value in the column. 3)MAXIMUM: Maximum value in the column. 4)AVG: Average of the values in the column. 5)STD: Standard deviation of the values in the column. 6)VARIANCE: Variance of the values in the column. 7)COUNT: Number of non-null values in the column. 8)NUMBER: Number of rows in the column. Let's look at our data, SQL> select dept_id,name,salary from emp; DEPT_ID NAME SALARY ---------- ------------ ---------- 10 SHAIK 60000 10 ABDUL 22000 10 KHALEEL 40000 20 IBRAHIM 35000 20 RAVI 60000 30 KASARAPU 250...