Professional Documents
Culture Documents
PL-SQL Quiz
PL-SQL Quiz
It would remain disabled and can be enabled only by dropping the foreign key constraint and re-cre
It would remain disabled and has to be enabled manually using the ALTER Constraint command.
It would be automatically enabled and deferred.
To join two tables through an equijoin, the columns in the join condition must be primary key an fore
You can join "n" tables(all having single column primary keys)in a SQL statement by specifying a min
You can join a maximum of two tables through an equijoin.
You specify an equijoin condition in the SELECT or FROM clauses of a SELECT statement.
Fundamental of PL/SQL
Carefully read the question and answer accordingly.
If the declaration is Number (4,5) and the assigned value is 123.4567 , what is the stored value?
Error , exceeds precision
1.2345567
12345.567
1234.5567
A GOTO statement cannot transfer control into an IF statement, CASE statement, LOOP statement, o
A GOTO statement can transfer control from one IF statement clause to another, or from one CASE s
When the EXIT statement is encountered, the condition in the WHEN clause is evaluated. If the condit
statement after the loop
DECLARE
var_mult number;
var_num1 number:= 100; -- LINE 1
BEGIN
var_mult := var_num1 * var_num2;
END;
dbms_output.put_line( var_num1);
END;
/
what will be the output of the above code assume serveroutput is on
Compiles , executes and Prints 50
Runs without any output
Compilation fails
Compilation fails due to error on line 1
Compiles , executes and Prints 100
2&3
4&5
1&4
1&2
CREATE OR REPLACE TRIGGER check_sal BEFORE UPDATE OF sal ON emp WHEN (new.sal < old.sal O
( - 20508, Do not decrease salary not increase by more than 10%); END;
CREATE OR REPLACE TRIGGER check_sal BEFORE UPDATE OF sal ON emp FOR EACH ROW WHEN (new
RAISE_APPLICATION_ERROR ( - 20508, Do not decrease salary not increase by more than 10%); EN
CREATE OR REPLACE TRIGGER check_sal AFTER UPDATE OR sal ON emp WHEN (new.sal < old.sal OR
( - 20508, Do not decrease salary not increase by more than 10%); END;
When a PL/SQL-packaged construct is referenced for the first time, the whole package is loaded into
The package specification may also include PRAGMAs, which are directives to the compiler