Reg No.: - Name: - Name
Reg No.: - Name: - Name
PART B
Answer any two full questions, each carries 9 marks.
5 a) Distinguish between total and partial participation constraints with the help (4)
of real examples.
b) Describe the real-world
world situation described by the following ER diagram. (3)
c) Re-draw
draw the ER diagram in 5(b) replacing the (min,max)) notation with the (2)
conventional notation showing cardinality and participation.
6 The relational schema for a library describing members, books and issue
information is given below. Foreign
Foreign keys have the same name as primary
keys.
BOOKS(ACC-NO,, ISBN, TITLE, EDITION, YEAR)
Page 1 of 4
E E4810 Pages: 4
MEMBERS(MEMBERID
MEMBERID, MEMBERNAME,
NAME, MEMBERTYPE)
ISSUEDTO(ACC-NO,
NO, MEMBERID,
MEMBERID DATE OF ISSUE)
Page 2 of 4
E E4810 Pages: 4
to the deleted STUDENT tuple are also deleted. Write SQL statements to
specify this foreign key requirement.
9 Illustrate use of assertions with an example. (3)
10 When do you say that two sets of functional dependencies are equivalent? (3)
Give a brief explanation.
11 What is meant by transitive dependency? Given an example. (3)
PART D
Answer any two full questions, each carries 9 marks.
12 Consider the following relations:
FACULTY(FNO, NAME, GENDER, AGE, SALARY, DNUM)
DEPARTMENT(DNO, DNAME, DPHONE)
COURSE(CNO, CNAME, CREDITS, ODNO)
TEACHING(FNO, CNO, SEMESTER)
Update the year of the album with name ‘SUHANA RATH’ to 2018.
Delete the album ‘YADON KI BAARISH’ along with all the songs in it.
b) Briefly discuss 3NF and BCNF with suitable real examples. (4)
PART E
Answer any four full questions, each carries 10 marks.
15 a) Distinguish between denseindex and sparseindex and give examples for each. (4)
Page 3 of 4
E E4810 Pages: 4
b) Consider an EMPLOYEE file with 10000 records where each record is of (6)
size 80 bytes. The file is sorted on employee number (15 bytes long), which
is the primary key. Assuming un-spanned organization, block size of 512
bytes and block pointer size of 5 bytes, compute the number of block
accesses needed for retrieving an employee record based on employee
number if (i) No index is used (ii)Multi-level primary index is used
16 a) How is a B-Tree structurally different from a B+-Tree? (3)
b) Write an explanatory note on clustering index by quoting an example. (4)
c) Show two non-canonical query trees for the following relational algebra (3)
expression:
ROLLNO, CID (COURSE ⋈ ENROLL ⋈ STUDENT))
COURSE.CID=ENROLL.CNO EROLL.ROLL#=STUDENT.ROLLNO
Page 4 of 4