You are on page 1of 1

SQL-PLSQL

1. How many types of SQL Commands in Oracle? Explain with examples.


2. TRUNCATE Command comes under which sql statement?
3. Please Explain CASE and DECODE Statement with examples (by writing
queries).
4. Explain types of Aggregate functions.
5. Can we use HAVING statement without GROUP BY clause?
6. What is the difference between UNION and UNION ALL Clause?
7. How many types of Exceptions are there in Oracle? Please explain in details
8. How many Exception block we can write in a PL-SQL procedure?
9. Please explain below function in details with example
a. LTRIM
b. INTRIM
c. RTRIM
d. LPAD
e. RPAD
f. CONCAT
g. TO_CHAR
h. TO_Date
i. TO_NUMEBER
j. LAST_DAY
10.Write an sql statement to find out the list of employees joins in the month of
NOVEMBER
11.Write an sql statement to find out the list of employees joins in the YEAR
2017.
12.Please give an example where to use NO_DATA_FOUND exception and
TOO_MANY_ROWS Exception.
13.Types of Cursors? Explain with examples.
14.Can we write DDL statement in a PL-SQL Block? if yes then please write the
code and explain it in detail.
15.What is the difference between Function, Procedure and Package?
16.Can we call a procedure using sql statement?
17.Can we call a PL-SQL Function as a sql statement if it contains DML
operations, if yes then please write the code and explain it in detail.
18.Can we use OTHER Exception before NO_Data_found exception.
19.Can we use commit inside PL-SQL Triggers? if yes then please write the code
and explain it in detail.
20.Which table stores CONSTRAINTS Details? and explain all CONSTRAINT in
details

You might also like