TITLE LEFT "Customer Purchasing" - SKIP 1 "Pq." SQL.PN0 SKIP 2 COMPUTE SUM OF TOTAL_SALE ON LASTNAME BREAK ON LASTNAME SKIP 1Compute Sum of Total Sale on Last Name
TTITLE
command was continued to the second line.COMPUTE
command here tells SQL*Plus to calculate the sum of the TOTAL_SALE column when there is a break on the LASTNAME column.BREAK
command here says that the report will break on each new value of the LASTNAME column and then skip one line.TTITLE
command said to place these words, left justified on the first line of the report and then skip one line (meaning go to the next line). TTITLE
command (second line of the command) stated to print "Pg." TTITLE
contains the SQL*Plus variable called SQL.PNO.
This is one of a small handful of pre-defined variables within SQL*Plus.
TTITLE
says "SKIP 2" at the end of the command.BREAK
stops printing rows and the COMPUTE
command prints its results (the sum of TOTAL_SALE). BREAK
command (SKIP 1). After this line, the next row of the report is printed.