# gtu previous years question papers -BE- Sem-III -Database Management System -December 2010

GTU  previous years question papers

GUJARAT TECHNOLOGICAL UNIVERSITY
B.E. Sem-III Regular / Remedial Examination December 2010
Subject code: 130703
Subject Name: Database Management System

Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1 (a) What is data independence ? Explain the difference between physical and logical
data independence with example.

(b) List the ACID properties. Explain the usefulness of each
(c) What are the responsibilities of a DBA ?
Q.2 (a) Explain following Term with suitable example
(1) Primary Key (2) Candidate Key (3) Super Key (4) On delete cascade
06
(b) Write down the query for the following table where primary keys are underlined.
Accident(date, driver, damage-amount)
(1) find the total number of people whose cars were involved in accidents in
2009.
(2) Find the number of accidents in which the cars belonging to “S.Sudarshan”
(3) Add a new customer to the database.
(4) Add a new accident recorded for the Santro belonging to “KORTH”
08
OR
(b) Consider the employee data. Give an expression in SQL for the following query :
Employee(employee-name, street,city)
Works(employee-name, company-name,salary)
Company(company-name, city)
Manages(employee-name, manager-name)
(1) find the name of all employees who work for State Bank.
(2) Find the names and cities of residence of all employees who work for State
Bank.
(3) Find all employee in the database who do not work for State Bank.
(4) Find all employee in the database who earn more than every employee of
UCO Bank.
08
Q.3 (a) Draw E – R Diagram for the School Management System. 07
(b) Explain 1NF, 2NF, 3NF and BCNF. 07
OR
Q.3 (a) Draw E – R Diagram for Library Management System. 07
(b) Consider a relation R with five attribute A,B,C,D,E having following dependencies
: A B, BCE and EDA
a)List all Keys for R
07
2
Q.4 (a) What is join ? Explain various type of joins with example 07
(b) Write Note on Cursor and its types 07
OR
Q.4 (a) What is deadlock ? When it is occurs and how to avoid it ? 07
(b) Explain Trigger with example. 07
Q.5 (a) Explain Strict two phase locking with it’s advantage and disadvantages. 07
(b) Explain DDL,DML,DCL 05
(c) Define Discretionary access control 02
OR
Q.5 (a) Explain linear search and binary search algorithm for selection operation. 07
(b) Write with example various built in string functions. 05
(c) Describe Data Encryption. 02

gtu previous years question papers