Professional Documents
Culture Documents
1. Draw an E-R diagram of library management system considering issue and return, fine
calculation facility, also show primary key, weak entity and strong entity.
2. Consider the following schema Depositor (ACC_no, Name, PAN, Balance) Create a view
on Depositor having attributes (ACC_no, PAN) where balance is greater than 100000.
1. Consider the following schema Depositor (ACC_no, Name, PAN, Balance) Create a view
on Depositor having attributes (ACC_no, PAN) where balance is greater than 100000.
Create a sequence
i) Sequence name is Seq_1, Start with 1, increment by 1, minimum value 1, maximum
value 20.
ii) Use a seq_1 to insert the values into table Student (ID Number (10), Name char
(20));
iii) Change the seq_1 max value 20 to 50.
iv) Drop the sequence.
1. Write a PL/SQL program which accept the customer ID from the user if user enters an
invalid ID then the exception invalid_id is raised using exception handling.
1. State the use of database trigger and also list types of trigger.
2. Explain recovery techniques with example.
3. Draw ER diagram for library management system considering issue and return, fine
collection facility. Consider appropriate entities.
1. Create simple and composite index. Write command to drop above index.
2. Write a command to create table student (RNo., name, marks, dept.) with proper
datatype and RNo as primary key.
3. Write a command to create and drop sequence.
1. Describe database privileges. Write down the procedure for granting & revoking
privileges in database objects to the users.
2. Write a command to create table student (rollno, Stud_name, branch, class, DOB, City,
Contact_no) and write down queries for following : (i) Insert one row into the table (ii)
Save the data (iii) Insert second row into the table (iv) Undo the insertion of second
row (v) Create save point S1. (vi) Insert one row into the table.