Chapter 9


1.

An iSQL*Plus substitution variable is preceded by what character(s) in a script?

an isql*plus substitution variable is preceded by either one or two ampersands (& or &&).

2.

Identify the two iSQL*Plus commands that define the header and footer for a report.

the ttitle and btitle commands define the header and footer for an isql*plus report.

3.

On which iSQL*Plus web page can you adjust the size of the iSQL*Plus window where you enter your iSQL*Plus commands or SQL statements?

the size of the isql*plus work screen window can be adjusted on the interface options page.

4.

Write an iSQL*Plus footer command to display the text Page 22, right-justified on the line.

this isql*plus command will display the text page 22 , right-justified on the footer line of the report: btitle right page 22

5.

Sums and averages can be displayed on an iSQL*Plus report using which iSQL*Plus command?

sums and averages can be displayed on an isql*plus report by using the compute isql*plus command.

6.

Write a single iSQL*Plus COLUMN command to format the Salary column with a total of six digits, four to the left of the decimal point and two to the right. In the same COLUMN command, define the header to be Monthly Salary, with the words appearing on different lines in the column header.

the following isql*plus command will format the salary column with six digits, four to the left of the decimal point and two to the right. in addition, the header will be defined as monthly salary, with the words appearing on different lines in the column header: column salary format 9999.99 heading monthly|salary

7.

Which iSQL*Plus command controls the row count display after a SELECT statement is executed?

the feedback command controls the row count display after a select statement is executed. by default, the row count from a query is displayed if there are six or more rows in the query output.

8.

Which iSQL*Plus command controls how duplicate column values are displayed on a report?

the break command will suppress duplicate values in a report for a specified column.

9.

The iSQL*Plus BREAK command is almost always specified in conjunction with what SQL SELECT statement clause?

the break command is almost always specified on a column that is in the order by clause of a sql select statement.

10.

In both the TTITLE and BTITLE commands, what option must be used to specify more than one line in the header or footer?

the skip option must be used in a btitle or ttitle command to specify more than one line in the header or footer.

Answers

1.

An iSQL*Plus substitution variable is preceded by either one or two ampersands (& or &&).

2.

The TTITLE and BTITLE commands define the header and footer for an iSQL*Plus report.

3.

The size of the iSQL*Plus Work Screen window can be adjusted on the Interface Options page.

4.

This iSQL*Plus command will display the text Page 22, right-justified on the footer line of the report:

btitle right ‘Page 22’

5.

Sums and averages can be displayed on an iSQL*Plus report by using the COMPUTE iSQL*Plus command.

6.

The following iSQL*Plus command will format the Salary column with six digits, four to the left of the decimal point and two to the right. In addition, the header will be defined as Monthly Salary, with the words appearing on different lines in the column header:

column Salary format 9999.99 heading ‘Monthly|Salary’

7.

The FEEDBACK command controls the row count display after a SELECT statement is executed. By default, the row count from a query is displayed if there are six or more rows in the query output.

8.

The BREAK command will suppress duplicate values in a report for a specified column.

9.

The BREAK command is almost always specified on a column that is in the ORDER BY clause of a SQL SELECT statement.

10.

The SKIP option must be used in a BTITLE or TTITLE command to specify more than one line in the header or footer.




Oracle9i DBA JumpStart
Oracle9i DBA JumpStart
ISBN: 0782141897
EAN: 2147483647
Year: 2006
Pages: 138
Authors: Bob Bryla

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net