PLSQL Quiz
PLSQL Quiz
8. Select the best answer to complete this variable declaration for a column
value.DECLARE l_foo_column_id SOME_TABLE.SOME_COLUMN_________;BEGIN...
A. %ID
B. %ROWTYPE
C. %COLUMNTYPE
D. %TYPE
E. None of the above.
10. Select the best answer. This is an example of what _____ type of cursor?
DECLARE l_date DATE;BEGIN SELECT TRUNC(SYSDATE) INTO l_date FROM
DUAL;END;
A. Explicit
B. Implicit
C. REF CURSOR
D. PL/SQL
E. None of the above
18. Select the best answer describing the maximum number of times the COMMIT will
be executed.ExampleFOR i IN 1..1000 LOOP ... IF MOD(i
A. The commit is fired 1000 times
B. The commit is fired 100 times
C. The commit is fired 10 times
D. The commit is fired 1 time
E. None of the above.
DB_ENCRYPT
DBMS_ENCRYPT
DBMS_WRAP
WRAP
2. All of the following can ONLY be used with numeric data types except:
AVG
COUNT
SUM
STDDEV
Fetch by columnid
Fetch by rowid
Fetch by tableid
Fetch by indexid
Which of the following SQL operations demands the use of wild cards comparisons?
IN
BETWEEN
EXISTS
LIKE
TUNEUP SYS
EXPLAIN SYS
DB_TUNEUP
EXPLAIN SYS
"Which of the following queries displays the sum of all employee salaries for those
employees not making commission, for each job, including only those sums greater
than 2500?"
"select job, sum(sal) from emp where sum(sal) > 2500 and comm is null;"
"select job, sum(sal) from emp where comm is null group by job having sum(sal) >
2500;"
"select job, sum(sal) from emp where sum(sal) > 2500 and comm is null group by
job;"
"select job, sum(sal) from emp group by job having sum(sal) > 2500 and comm is not
null;"
CORRECT IS B
Indicate whether this statement is true or false. A foreign key column must contain
unique values.
TRUE
FALSE
CORRECT IS B
What are the two ways to determine the structure of a table in database?
Using DESCRIBE command and dbms_metadata_get_commit package
Using METADATA command STRUCTURE commands
Using DATA_ON_DATA and STRUCTURE commands
Using DESCRIBE command and dbms_metadata_get_ddl package
CORRECT IS D