NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
B-10
BREAK TITLE Command
The following example groups detail lines by monthly salary and (within salary
groups) by job code and department number. When finished, enter CANCEL at the
select-in progress prompt (S>):
>> SET LIST_COUNT 0;
>> SELECT DEPTNUM, JOBCODE, SALARY/12
+> FROM PERSNL.EMPLOYEE
+> WHERE SALARY > 20000
+> ORDER BY 3, 2, 1;
S> BREAK ON COL 3, JOBCODE, DEPTNUM;
S> LIST NEXT 5;
DEPTNUM JOBCODE (EXPR)
------- ------- --------------------
3200 300 1833.333333333333
2000 200 2000.000000000000
4000 900 2000.075000000000
3200 900 2083.333333333333
1000 500 2083.395833333333
S> CANCEL;
>>
BREAK TITLE Command
BREAK TITLE is an SQLCI report writer command that specifies the text at the
beginning of a group of break column values. You can use BREAK TITLE only from
the select-in-progress prompt, not from the SQLCI prompt.
break-column
identifies a break column (a column named in a BREAK ON command). It can be a
column name, an alias, a detail alias, or COL number (which specifies the position
of the column in the select list).
BREAK TITLE break-column (print-list) [CENTER];
print-list is:
print-item> [, print-item] ...