GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER- III (New) EXAMINATION — WINTER 2019
--- Content provided by FirstRanker.com ---
Subject Code: 3130703 Date: 30/11/2019Subject Name: Database Management Systems
Time: 02:30 PM TO 05:00 PM Total Marks: 70
Instructions:
- Attempt all questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
--- Content provided by FirstRanker.com ---
MARKS
Q.1 (a) Define Primary key, Candidate key and Super key. 03
(b) List the relational algebra operators. Discuss any two such algebra 04
--- Content provided by FirstRanker.com ---
operator with suitable example.(c) Enlist and explain the advantages of DBMS over traditional file 07
system.
Q.2 (a) Explain Instance and Schema in detail. 03
(b) The relational database schema is given below. 04
--- Content provided by FirstRanker.com ---
employee (person-name, street, city)works (person-name, company-name, salary)
company (company-name, city)
manages (person-name, manager-name)
Write the relational algebra expressions for the given queries.
--- Content provided by FirstRanker.com ---
- Find the names of all employees who work for First Bank Corporation.
- Find the names and cities of residence of all employees who work for First Bank Corporation:
- Find the names, street address, and cities of residence of all employees who work for First Bank Corporation and earn more than $10,000 per annum:
- Find the names of all employees in this database who do not work for First Bank Corporation.
(c) Construct an E-R diagram for a car insurance company whose 07
--- Content provided by FirstRanker.com ---
customers own one or more cars each. Each car has associatedwith it zero to any number of recorded accidents. Each insurance
policy covers one or more cars, and has one or more premium
payments associated with it. Each payment is for a particular
period of time and has an associated due date and the date when
--- Content provided by FirstRanker.com ---
the payment was received.OR
(c) Explain specialization and generalization concepts in ER diagram 07
with suitable example.
Q.3 (a) What do you mean by integrity constraints? Discuss various 03
--- Content provided by FirstRanker.com ---
integrity constraints.(b) Consider schema R = (A, B, C, G, H, I) and the set F of functional 04
dependencies
{A—B,A—C,CG— H,CG—[,B— H}. Prove that AG —
I Holds.
--- Content provided by FirstRanker.com ---
(c) A software contract and consultancy firm maintains details of all 07
the various projects in which its employees are currently involved.
These details comprise:
Lecturer Number, Lecturer Name, Lecturer Grade, Department
Code, Department Name, Subject Code, Subject Name, Subject
--- Content provided by FirstRanker.com ---
LevelAssume that each lecturer may teach many subjects but may not
belong to more than one department. Subject Code, Subject Name
and Subject Level are repeating fields.
Normalize this data to Third Normal Form.
--- Content provided by FirstRanker.com ---
OR
Q.3 (a) Explain various Normal forms up to 3NF. 03
(b) Explain Armstrong’s Axioms in detail. 04
(c) A software contract and consultancy firm maintain details of all 07
the various projects in which its employees are currently involved.
--- Content provided by FirstRanker.com ---
These details comprise: Employee Number, Employee Name,Date of Birth, Department Code, Department Name, Project Code,
Project Description, Project Supervisor
Assume the following:
e Each employee number is unique.
--- Content provided by FirstRanker.com ---
Each department has a single department code.Each project has a single code and supervisor.
Each employee may work on one or more projects.
Employee names need not necessarily be unique.
Project Code, Project Description and Project Supervisor
--- Content provided by FirstRanker.com ---
are repeating fields.Normalize this data to Third Normal Form.
Q.4 (a) Explain Authorization and access control in brief. 03
(b) Discuss various steps of query processing with diagram. 04
(c) Construct a B tree for the following set of key values: 07
--- Content provided by FirstRanker.com ---
(2,3,5,7,11,17,19,23,29,31)Assume that the tree is initially empty and values are added in
ascending order. Consider-the number of pointers in each node as
four.
OR
--- Content provided by FirstRanker.com ---
Q.4 (a) Explain various mapping cardinalities. 03
(b) Describe log-based recovery in brief. 04
(c) Explain Dense and Sparse indices in detail. 07
Q.5 (a) What is PL/SQL. Explain the difference between SQL and 03
PL/SQL.
--- Content provided by FirstRanker.com ---
(b) Write a note on two phase locking protocol. 04(c) Consider following schema and write SQL for given 07
statements.
Student (RollNo, Name, DeptCode, City)
Department (DeptCode, DeptName)
--- Content provided by FirstRanker.com ---
Result (RollNo, Semester, SPI)- Display the name of students with RollNo whose name ends with ‘sh’.
- Display department wise total students whose total students are greater than 500.
- List out the RollNo, Name along with CPI of Student.
- Create RO, ErétReaRRBIREOKSY for exighing, firstranker.com table.
- Display student name who got highest SPI in semester 1.
- Display the list of students whose DeptCode is 5, 6,7,10.
- Create table Student_New from student table without data.
--- Content provided by FirstRanker.com ---
OR
Q.5 (a) Explain conflict serializability with the help of suitable example. 03
--- Content provided by FirstRanker.com ---
(b) Enlist and explain ACID properties for transaction. 04(c) Consider the tables given below. Write the SQL queries for 07
the questions given below:
T1 ( Empno, Ename , Salary, Designation,)
T2 (Empno, Deptno.)
--- Content provided by FirstRanker.com ---
- Display all the details of the employee whose salary is lesser than 10000.
- Display the Deptno in which Employees with name starting with letter ‘S’ is working.
- Add a new column Deptname in table T2.
- Change the designation of Geeta from ‘Manager’ to ‘Senior Manager’.
- Find the total salary of all the employees department wise.
- Add Empno as primary key in existing table T1.
- Display the Deptno having highest number of employees.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE/B.Tech 2019 Winter Question Papers || Gujarat Technological University