-
What is a cursor for loop ?
Cursor for loop implicitly declares %ROWTYPE as loop index,opens a cursor, fetches rows of values from active set into fields in the record and closeswhen all the records have been processed. eg. FOR emp_rec IN C1 LOOP salary_total := salary_total +emp_rec sal; ...
-
Oracle locks
With what ways can we find out instance locks?
-
Dropping a type in Oracle
Can a type body be dropped without dropping the type specification?
-
-
What is the use of nocopy parameter in oracle procedure
Hi, What is nocopy parameter in oracle procedure. what is the use of it. In which situation,we can use the nocopy parameter.Thanks,Saravanan.P
-
Oracle collections
What are the types of collection in PL/SQL? What is the advantage of nested tables?
-
Autonomous transactions
What is an autonomous transaction?
-
-
-
Copying data across tables
In what ways can data be copied from one table to another?
-
-
Oracle Joins
There are 2 tables, A and B having 3 rows each. What will be result on executing the following query? : SQL> select * from A,B
-
-
Can we use function inside a trigger
Is it possible to use function inside a trigger.
-
-
Group By
Create a query using “ group by” that shows maximum salary for each department?
-
Overloading procedure - all parameters are default
If there are 2 overloaded procedure, one among then have 1 IN parameter and another have 2 parameters. Both procedures parameters are of default type.
What will happen when you will call package.procedure without any parameter? -
Write ONLY ONE SQL statement which produces the following output
DEPARTMENT_ID EMP_COUNT DEPT_PERCENTAGE
-
-
What happens to the base table transactions when procedure has some error?
Procedure A calls procedure B. A updates table t1, t2. B updates table t3. If some error happens to B what happens to the updates in all those tables? Whether they will rollback or commit? If commits how far it will commit?
PL/SQL Interview Questions
Ans