Database Concepts: PL/SQL and Teradata
Covers database programming concepts including PL/SQL functions, procedures, triggers, and Teradata-specific features like Primary Index, Secondary Index, PPI tables, and utilities (Fastload, Multiload)
Questions
The keyword return is compulsory in
- Procedure definition
- Function definition
- both A & B
- Option in both A & B
Examine this database trigger CREATE OR REPLACE TRIGGER prevent_gross_modification {additional trigger information} BEGIN IF TO_CHAR(sysdate, DY) = MON THEN RAISE_APPLICATION_ERROR(-19999,'user Defined error'); END IF; END; This trigger will error out
- True
- False
_________ is the maximum nuber of Exceptions that the PL/SQL engine will process before exiting out of the BLOCK.
- only one
- All that apply
- I Dont know
- None of the above
A procedure can have a procedure declaration inside
- True
- False
Multiload will not support
- USI
- NUSI
- Both a and b
- Neither a nor b
In Teradata, indexes are maintained by the Senior Database Administrator
- True
- False
Secondary Index is used for
- Access the rows
- Distribution of the rows
- Both a and b
- Only for distribution of rows to particular AMPs
Primary Index is mandatory for teradata table
- True
- False
Primary Index is used for
- Access the rows
- Distribution of the rows
- Both a and b
- Only for distribution of rows to particular AMPs
Fastload will not support
- USI
- NUSI
- Both a and b
- Neither a nor b
Primary index value can be changed
- At a cost of row redistribution
- At a cost of table recreation
- When the table is empty
- None of the above
Reading the rows using Non-Unique Secondary index is
- One or Two AMP operation
- All AMP operation
- Many AMP operation
- Full table scan
For PPI table, rows are first sorted by ------ at each AMPs
- Hash Value
- Partition Number
- First column of the table
- Both a and b
Reading the rows using Non-Unique Primary index is one AMP operation
- True
- False
Teradata table will have ------ Primary Index
- Many
- Two
- One
- 64
Reading the rows using Unique Secondary index is
- One or Two AMP operation depends on the base row location
- Always two AMP operation irrespective of the base row location
- Many AMP operation
- All AMP operation
Views can be specified in a trigger statement
- True
- False
Two functions can be used with the same name in a PL/SQL block
- True
- False
What is the maximum number of statements that can be specified in a trigger statement?
- 1
- 2
- 3
- 4
Which of the following is not a schema object?
- Index
- Tables
- Public Synonymns
- Triggers