Sie sind auf Seite 1von 3

1.

2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.

Difference between Syntax and Runtime errors in PL/SQL??


Explain what is COMMIT, ROLLBACK and SAVEPOINT??
How many types of Triggers are there in PL/SQL and what are they?
How to generate Debugging Information in PL/SQL?
In what order should a open/fetch/loop set of commands in a PL/SQL block be implemented?
Name any 5 PL/SQL exception types
What are the two different types of Exceptions in PL/SQL?
What is IN parameter and OUT parameter in PLSQL?
What is Public and Private Procedures in PL/SQL?
What is Referential Integrity?
What is SQLCODE and SQLERRM in PL/SQL?
What is the difference between CASE and DECODE?
What is the difference between VARCHAR and VARCHAR2 in PL/SQL?
What is %TYPE and %ROWTYPE in PL/SQL??
What is the disadvantage of using %ROWTYPE in PL/SQL?
What are the advantages of using %TYPE and $ROWTYPE in PL/SQL?
List all different types of Data Types in PL/SQL?
What is the difference between Views and Materialized Views in Oracle?
What is difference between a PROCEDURE & a FUNCTION ?
What are the Advantages of Using Database Triggers??
What are two virtual tables available during database trigger execution in PL/SQL?
Is it mandatory to close the Cursor in a PL/SQL block ?
What is difference between % ROWTYPE and TYPE RECORD?
How does an Explicit Cursor work in PL/SQL?
Can we use RETURN STATEMENT and RETURN key word in Procedure, if we use what will
happen?
26. How to debug your PL/SQL procedure?
Click on the question to see the answer

Advanced PL/SQL Interview Questions


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

Does SQL*PLUS has embedded PLSQL engine?


How does an Implicit Cursor work in PL/SQL?
How does ROWID help in running a query faster?
How to return more than one value from a Function in PL/SQL
How to use COMMIT in PL/SQL Trigger?
In a PL/SQL block of code how do you find if a Cursor is STILL open?
What are all the special operators does Oracle provide for dealing with NULLs?
What are Explicit Cursor attributes and what are they?
What are Implicit Cursor attributes and what are they?
What are the rules to be applied to NULL while doing comparison in an expression?

11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.

1.
2.
3.
4.
5.
6.
7.
8.
9.

What is a trigger and what is the difference between Row Level and Statement Level
trigger??
What is Autonomous transaction in PL/SQL?
What is Global Temporary Tables and What is it Purpose?
What is Mutating error in PL/SQL Triggers?
What is RAISE_APPLICATION_ERROR is PL/SQL?
What is SYS_GUID() function? and what is the purpose of SYS_GUID function?
What is the maximum number of triggers, can apply to a single table?
What steps are included in the compilation process of a PL/SQL block?
How to avoid usage of Cursors in PL/SQL?
How to return more than one value from a Function in PL/SQL
How is the Cursor declared in Procedure is different from Cursor defined in Package
Specification?
What is RAISE_APPLICATION_ERROR in PL/SQL Exception handling??
What is PRAGMA EXECPTION_INIT?
What happens if a procedure which updates a column of table X is called in a database
trigger of the same table?
What is the purpose of WHERE CURRENT OF statement in PL/SQL?
Why cant we use SQLERRM and SQLCODE in INSERT Statement?
Can we write When OTHERS Exception at the beginning of the exception block and some
other exceptions after that ?
What is Cursor Variables or REF CURSOR ?
What are the Disadvantages of Cursor Variables?
What are the advantages of using %TYPE and $ROWTYPE in PL/SQL?
How to find Package/Procedure name and Line Number where the program got errored
out???
What is BULK COLLECT in PL/SQL?

How to display 9th record from EMP table?


HOW TO DISPLAY 5 TO 7 ROWS FROM A TABLE?
Write a Query to Delete The Repeated Rows from emp table?
How to Delete the rows of employees who are working in the company for more ?
How to impose a validation saying that salary cannot be greater 10,000 (note give a name to
this constraint)
How to display those employee whose joining DATE is available in deptno?
How to display those employee whose joining of month and grade is equal?
How to display all enames in reverse order? (SMITH:HTIMS)
How to display the 10th record of emp table(without using rowid) ?

10.
11.

How to display those employees who joined the company before 15 of the month?
How to display employee name and his salary whose salary is greater than highest average
of department number?
12. How to display those employee whose 10% of salary is equal to the year of joining?
13. How to display those employee who joined in the company in the month of Dec?
14. How to display those employee whose salary is ODD value?
15. How to find out last 5 (least) earners of the company.?
16. How to display employee name, sal, comm and net pay for those employee whose net pay is
greater than or equal to any other employee salary of the company?
17. How to display those managers name whose salary is more than average salary of his
employee?
18. How to display dname where at least 3 are working and display only department name?
19. How to find out the top 5 earners of company based on emp dept table?
20. How to display all employees name,job,salary,grade and depart name for every one in the
company except CLERK.Sort on salary display the highest salary?
21. How to display grade and employees name for the dept no 10 or 30 but grade is not 4 while
joined the company before 31-dec-82?
22. How to display those employees who are working in the same dept where his manager is
work?
23. How to display employee name, dept name, salary and comm for those sal in between 2000
to 5000 while location is Chicago?
24. How to display the Job groups having total salary greater than the maximum salary for
managers?
25. How to display the names of the employees who earn highest salary in their respective
departments?
26. How to display the names of clerks who earn a salary more than the lowest salary of any
salesman?
27. How to display the employee number and name for employee working as clerk and earning
highest salary among clerks?
28. How to display name,salary,hra,pf,da,total salary for each employee. The output should be in
the order of total salary,hra 15% of salary,da 10% of salary,pf 5% salary,total salary will
be(salary+hra+da)-pf?
29. How to display the names of employees whose names have second alphabet A in their
names?
30. How to display the names of the employees who are working in the company for the past 5
years?
31. How to display the names of all the employees who are working as clerks and drawing a
salary more than 3000?
32. How to display the employee name and annual salary for all employees including
commission?