0
3.6kviews
Database Management System Question Paper - Jun 18 - Computer Science (Semester 5) - Visveswaraya Technological University (VTU)
1 Answer
0
48views

Database Management System - Jun 18

Computer Science (Semester 5)

Total marks: 80
Total time: 3 Hours
INSTRUCTIONS
(1) Question 1 is compulsory.
(2) Attempt any three from the remaining questions.
(3) Draw neat diagrams wherever necessary.

1.a. Discuss the main characteristics of the database approach and how it differs from traditional file systems.
(4 marks) 00

1.b Describe the three - schema architecture. Why do we need mappings among schema levels.
(4 marks) 00

1.c Discuss various components of a DBMS with a neat diagram.
(8 marks) 00

2.a Define an Entity and Attributes. Explain the different types of attributes that occur in an ER-diagram model, with an example.
(6 marks) 00

2.b Draw an ER-diagram of an Airline reservation system, taking into account at least five entities. Indicate all keys, constraints and assumptions that are made.
(10 marks) 00

3.a Explain the data types available for attributes specification in SQL.
(4 marks) 00

3.b Explain briefly violations in entity integrity constraint, key and referential constraints with example.
(6 marks) 00

3.c Consider the following RESORT database,

RESORT (resortno, resortname, resorttype, resortaddr, resortcity , numsuite)

SUITE (suiteno, resortno, suiteprice)

RESERVATIOn (reservationno, resorttype, resortaddr, resortcity , numsuite)

VISITOR(visitno, firstname, lastname, visitoraddr)

i) Write the SQL to list full details of all the resorts on Los Angeles.

ii) Write the SQL to list full details of all resorts having number of suites more than 30.

iii) Write the SQL to list visitors in ascending order by firstname.

(6 marks) 00

4.a Explain how constraints are specified in SQL during table creation with suitable example.
(4 marks) 00

4.b Consider the following relations for a database that keeps track of student enrollment in courses and he bools adopted for each course:

STUDENT (SSn, Name, Major, bdate)

COURSE (Courseno, Cname, dept)

ENROLL (SSn , Quarter , Courseno, grade)

BOOK_ADOPTION(Courseno, Quarter, book_isbn)

TEXT(book_isbn, book_title, Publisher, Author)

Write the following queries in relational algebra on the database schema:

i) List the number of courses taken by all students named John Smith in winter 2009(i.e Quarter = W09).

ii) Produce a list of text books (include courseno, book_isbn, book_title) for courses offered by the 'CS' department that have used more than books.

iii) List any department that has all its adopted books published by 'Person' publishing.

(6 marks) 00

4.c Give an example of mapping of generation or specialization into relation schemas.
(6 marks) 00

5.a Discuss how each of the following constructs is used in SQL and discuss the various options for each construct:

i) Nested Queries ii) Aggregate functions iii) Triggers iv) Views and their updatability v) Schema change statements vi) Group by and having clause.

(6 marks) 00

5.b Draw and explain 3 - tier architecture and technology relevant to each tier. Write the advantages of 3 - tier architecture.
(6 marks) 00

5.c What is CGI? Why was CGI introduced? What are the disadvantages of an architecture using CGI scripts?
(4 marks) 00

6.a What is Dynamic SQL and how is it different from Embedded SQL?
(4 marks) 00

6.b What is SQL J and how is it different from JDBC?
(4 marks) 00

6.c Consider the following company database:

EMP(Name, SSn, Salary, Supersn, dno)

DEPT (dnum, dname, mgrssn)

DEPT_LOC (dnum, dlocation)

PROJECT(Pname, Pnumber, Ploaction, dnum)

WORKS ON(Essn, dept_name, sex)

Write SQL queries for the following:

i) Retrieve the names of all employees who work in the department that has the employee with the highest salary among all employees.

ii) Retrieve the names of names of employees who make atleast 10000 more than the employee who is paid the least in the company.

iii) a view that has the employee name, supervisor name and employee salary for each employee who works in the Research' department.

iv) A view that has the project name, controlling department name, number of employees and total hours worked per week on the project for each project with more than one employee working on it.

(8 marks) 00

7.a Discuss insertion, deletion and modification anomalies. Why are they considered bad? Illustrate with examples.
(4 marks) 00

7.b Define Multivalued dependency. Explain fourth normal form, with an example.
(6 marks) 00

7.c Consider the universal relation r={A,B,C,D,E,F,G,H,I,J} and the set of functional dependencies F = {{A,B}-> {C}, {A}->{D,E}. {B}->{F}, {F}-> {G,H},{D}->{I,J}. What is key of R? DecomposeR into 2NF and then 3NF relations.
(6 marks) 00

8.a Define Non-additive join property of a decomposition and write an algorithm of testing for non-additive join property .
(4 marks) 00

8.b A relation R(A,c,D,E,H) satisfies the following FDs :A->C, AC->D, E->AD, E->H, Find the Canonical cover for this set of FD's.
(6 marks) 00

8.c Consider two set of functional dependencies : F={A->C, AC->D,E->AD,E->H} and G={A->CD, E->AH}. Are they equivalent?
(6 marks) 00

Please log in to add an answer.