Anda di halaman 1dari 2

USN 06CS54

Sri Revana Siddeshwara Institute of Technology


Department of Computer Science and Engineering
Fifth semester B.E Preparatory Examination OCT/NOV-2012
Database Management Systems

Note: Answer any 5 full questions by selecting at least 2 from each part

PART-A

1 a. Explain the typical components of a DBMS with a neat diagram. (08 Marks)
b. Discuss the different Types of user friendly interfaces and the types of users who typically use each. (08 Marks)
c. Define: i) DBMS ii) Meta-data iii) Entity iv) Attribute. (04 Marks)

2 a. Explain with sketch the different phases of Database Design. (06 Marks)
b. What is cardinality Ratio? What are the different types of Cardinality ratio? (04 Marks)
c. Design an ER diagram for keeping track of information about university database taking into account
Atleast 4 entities. (10 Marks)

3 a. Consider the following two tables T1 and T2. Show the results of the following operations.
i) T1 T2 ii) T1 T2 iii) T1 T2

iv) T1 T2 v) T1 ∪ T2 (10 Marks)


(Assume T1 and T2 are union compatible)

Table T1 Table T2

P Q R A B C
10 a 5 10 b 6
15 b 8 25 c 3
25 a 6 10 b 5

b. Give the ER to Relational mapping algorithm. Discuss each with an example. (10 Marks)

4 a. List and explain the data types that are allowed in SQL. (06 Marks)
b. Consider the following relational database schema
Student(student_id, sname, major,GPA)
faculty(faculty_id, fname, dept, designation, salary)
course(course_id, cname, faculty_id)
enroll(course_id, student_id, grade)
Write the following queries in SQL
i) List the names of all students enrolled for the course CS 53
ii) List the names of students enrolled for the course CS 53 and have received ‘A’ grade
iii) List all the departments having an average salary of above Rs. 20,000
iv) Give a 15% raise to salary of all faculty (08 Marks)
c. Explain DROP and ALTER commands. (06 Marks)
PART-B

5 a. How is a View created and dropped? What are the problems associated with updating a view? (06 Marks)
b. How are assertions and triggers defined in SQL? Explain. (06 Marks)
c. Explain: i) Joins ii) Aggregate functions (08 Marks)

6 a. Discuss insertion, deletion and updation anamolies with examples. (06 Marks)
b. What are spurious tuples? Why do they get generated? How generation of such tuples can be
Avoided? (06 Marks)
c. What is the need for Normalization? Define 2NF. Consider the relation EMP_PROJ {ssn, pnumber, hours,
Ename, pname, plocation}. Assume {ssn, pnumber} as primary key. The dependencies are
{ssn, pnumber} hours
Ssn Ename
Pnumber {pname, plocation}. Normalize the above relation into 2NF (08 Marks)

7 a. What are the ACID properties? Explain each one. (06 Marks)
b. What is serializability? How can serializability be ensured? Do you need to restrict concurrent execution
of transaction to ensure serializability? Justify your answer. (10 Marks)
c. What is the phantom problem? Explain with an example. (04 Marks)

8 a. Write short notes on:


i) 2PL protocol
ii) Deadlocks
iii) Aries
iv) Multivalued dependency (20 Marks)

Anda mungkin juga menyukai