DBMS QP Bua
DBMS QP Bua
DBMS QP Bua
EMPNO NUMBER
ENAME CHAR
DOB Date
Dept String
Salary Real
b) Enter 5 tuples
15. a) Write an E-R diagram of employee salary database and also mention type of association
between the entities.
b) Explain one to one, one to many and many to many relationships with example.
14. a) Explain any five 5 types of attributes with an example for each.
b) What is relationship ? Explain one to many and many to one with example
i) Domain
ii) Tuple
iii) Constraints
v) Foreign key.
17. a) Explain ALTER and CREATE command with syntax and example.
i) Select name and course of the student who has got highest percentage.
iii) Display the reg. no. and name of the student who have failed in the test.
19. a) Write PL/SQL program to find factorial of a number using while loop.
14. a) Design an ER-diagram for keeping track of information about company database, with at
least four entities.
18. a) Define transaction. Explain different states of transaction with a neat state transaction
diagram.