Explain the PL/SQL block structure with an example.
What are records and nested records in PL/SQL? Explain benefits of using records.
How functions can be called and parameterized in databases? Explain with examples.
What is a cursor? Explain different types of cursors used in database.
Why do we need to use triggers in the database? Explain the use of triggers with proper examples.
How user define exceptions can be created in PL/SQL? Explain with proper example.
Write short notes (any two):
a) INSTEAD OF trigger
b) Packages
c) Parameterized cursor
Attempt any TWO questions
[2x10=20]Explain PL/SQL architecture. Differentiate between SQL and PL/SQL Also explain the conditional constructs used in PL/SQL.
Define stored procedure. Explain different parameter modes used in stored procedures. Also differentiate between functions and stored procedure with examples.
Explain row trigger and statement trigger with examples. Explain any five SQL*PLUS commands.