Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

SANDIP POLYTECHNIC

QUESTION BANK FOR SESSIONAL TEST - II

Program Name: Diploma in Information Technology


Program Code: IF4 I
Semester: Fourth
Course Title: Database Management

Two marks

1. State the use of sequence


2. Define Synonyms.
3. State any two advantages of PL/SQL.
4. Compare predefined exceptions and user defined exceptions.
(Any 2 Points)
5. Compare Function and Procedure. (Any 2 Points)
6. What is Cursor & List the types of Cursors.
7. State Database Security. Give its importance.
8. Define Index give its types.
Four marks
1. Write a PL/SQL code to find sum of numbers from 1 to 20.
2. Write syntax and example of create and drop synonym.
3. Describe concept of subqueries with example.
4. Consider following schema:
Employee (E_id, First_name, Last_name, Salary, Department)
Write SQL commands for following statement.
i. Find length of employee names.
ii. Concatenate first name and last name of employee.
iii. Left pad each department name with “***”.
iv. Right pad each department name with “$$$”.
5. Write syntax to create a trigger. Describe [After| Before|
Instead of] Options.
6. Describe ACID properties of Transaction.
7. Write SQL Commands for following statements.
i. Create user Jack having password as ‘MSBTE@123’.
ii. Assign create and update privileges to ‘Jack’.
iii. Remove Update privileges from ‘Jack’.
8. Write steps to create execute and delete stored procedure.

You might also like