Dbms
Dbms
Dbms
___________
Marks
Q.1 (a) Define following terms.
1) Schema 2) Database Management System 3) Physical Data 03
Independence
(b) Describe tasks performed by the Database
Administrator. 04
(c) Differentiate strong entity set and weak entity set. Demonstrate the
concept of both using real-time example using E-R diagram. 07
Q.2 (a) Consider the relation scheme R = {E, F, G, H, I, J, K, L, M, M} and the set of
functional dependencies
{{E, F} -> {G}, {F} -> {I, J}, {E, H} -> {K, L}, K -> {M}, L -> {N} on R.
03
What is the key for R?
(b) Consider a relation scheme R = (A, B, C, D, E, H) on which the following
functional dependencies hold: {A–>B, BC–> D, E–>C, D–>A}. What are the 04
candidate keys of R?( Any 1 in case of more than one candidate key
(c) Draw an E-R diagram of following scenario. Make necessary
assumptions and clearly note down the same.
07
We would like to make our College’s manually operated Library to fully
computerized .
1
Q.5 (a) List and explain ACID properties with respect to Database transaction. 03
(b) Explain RAID Levels with respect to Data Storage. 04
(c) Explain the concept of Conflict Serializable with suitable schedules. 07
Q.8 (a) Explain following SQL commands with syntax and significance.
03
Commit & Rollback
(b) TABLE Worker(WORKER_ID INT NOT NULL PRIMARY
KEY,FIRST_NAME CHAR(25), LAST_NAME CHAR(25),SALARY
INT(15),JOINING_DATE DATETIME,DEPARTMENT CHAR(25));
(c) List the techniques to obtain the query cost. Explain any one. 07
***********************
2
Seat No.: ________ Enrolment No.___________
Marks
Q.5 (a) What is trigger? Explain its type with their syntax. 03
(b) Write a PL/SQL block to print the given number is 04
odd or even.
(c) Consider the following relational schemas: 07
EMPLOYEE (EMPLOYEE_NAME, STREET,
CITY)
WORKS (EMPLOYEE_NAME,
COMPANYNAME, SALARY)
COMPANY (COMPANY_NAME, CITY)
3
Seat No.: ________ Enrolment No.___________
Marks
Q.1 (a) What is Data Definition Language? List DDL statements and explain 03
anyone with an example.
(b) List and describe ACID property of transactions. 04
(c) Consider the relation R = {A, B, C, D, E, F, G, H, I, J} and the set of 07
functional dependencies
F={{A, B} → C, A → {D, E}, B → F, F →{G, H}, D →{I, J}}
What is the key for R? Decompose R into 2NF, then 3NF relations.
Q.2 (a) Differentiate shared lock and exclusive lock in lock-based protocol. 03
(b) Describe the Cartesian Product operation in relational algebra. 04
(c) Draw E-R diagram for student management system with the necessary 07
assumption.
OR
(c) Consider the relational database given below. Give an expression in the 07
relational algebra to express each of the following queries:
Employee (person-name, street, city),
Works (person-name, company-name, salary),
Company (company-name, city),
Manages (person-name, manager-name)
(1) Find name of all employees.
(2) Find city of employee whose name is ‘jashu’.
(3) Find name and city of all employees who are having salary>50000.
(4) Find total salary of all employees who are working for company
‘HCL’.