INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Similar documents
DATABASE MANAGEMENT SYSTEMS

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

SYED AMMAL ENGINEERING COLLEGE

Example Examination. Allocated Time: 100 minutes Maximum Points: 250

Babu Banarasi Das National Institute of Technology and Management

CS2255 DATABASE MANAGEMENT SYSTEMS QUESTION BANK UNIT I

VALLIAMMAI ENGINEERING COLLEGE

CS6302- DATABASE MANAGEMENT SYSTEMS- QUESTION BANK- II YEAR CSE- III SEM UNIT I

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10

Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment

VIEW OTHER QUESTION PAPERS

INSTITUTE OF AERONAUTICAL ENGINEERING

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

CMSC 461 Final Exam Study Guide

Name :. Roll No. :... Invigilator s Signature : DATABASE MANAGEMENT SYSTEM

Unit 2. Unit 3. Unit 4

Database Management Systems Paper Solution

COURSE PLAN. Computer Science and Engineering. COURSE DETAILS Name Of The Programme:: B.Tech Batch:: Systems

2011 DATABASE MANAGEMENT SYSTEM

MaanavaN.Com DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK

Northern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester

Techno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601

1. (a) Briefly explain the Database Design process. (b) Define these terms: Entity, Entity set, Attribute, Key. [7+8] FIRSTRANKER

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Total No. of Questions :09] [Total No. of Pages : 02

B.C.A DATA BASE MANAGEMENT SYSTEM MODULE SPECIFICATION SHEET. Course Outline

GUJARAT TECHNOLOGICAL UNIVERSITY

M S Ramaiah Institute of Technology Department of Computer Science And Engineering

III/IV B.Tech (Regular) DEGREE EXAMINATION. Answer ONE question from each unit. 1. Answer all questions (1X12=12 Marks) a What is a relational model?

Data about data is database Select correct option: True False Partially True None of the Above

Queen s University Faculty of Arts and Science School of Computing CISC 432* / 836* Advanced Database Systems

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

1. (a) Explain the Transaction management in a database. (b) Discuss the Query Processor of Database system structure. [8+8]

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer DBMS

ROEVER ENGINEERING COLLEGE

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

INSTITUTE OF AERONAUTICAL ENGINEERING


Deccan Education Society s FERGUSSON COLLEGE, PUNE (AUTONOMOUS) SYLLABUS UNDER AUTONOMY. FIRST YEAR B.Sc. COMPUTER SCIENCE SEMESTER I

UNIVERSITY OF BOLTON CREATIVE TECHNOLOGIES COMPUTING PATHWAY SEMESTER TWO EXAMINATION 2014/2015 ADVANCED DATABASE SYSTEMS MODULE NO: CPU6007

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN

Note: Select one full question from each unit


15CS53: DATABASE MANAGEMENT SYSTEM

CS 461: Database Systems. Final Review. Julia Stoyanovich

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Database Applications (15-415)

MTA Database Administrator Fundamentals Course

TUTORIAL QUESTION BANK

Total No. of Questions :09] [Total No. of Pages : 02. II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC Second Semester CSE/IT DBMS

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

CS348: INTRODUCTION TO DATABASE MANAGEMENT (Winter, 2011) FINAL EXAMINATION

E.G.S. PILLAY ENGINEERING COLLEGE (An Autonomous Institution, Affiliated to Anna University, Chennai) Nagore Post, Nagapattinam , Tamilnadu.

Database Management

Assignment Session : July-March

Department of Information Technology B.E/B.Tech : CSE/IT Regulation: 2013 Sub. Code / Sub. Name : CS6302 Database Management Systems

Name :. Roll No. :... Invigilator s Signature : DATABASE MANAGEMENT SYSTEM

University of Massachusetts Amherst Department of Computer Science Prof. Yanlei Diao

NJIT Department of Computer Science PhD Qualifying Exam on CS 631: DATA MANAGEMENT SYSTEMS DESIGN. Summer 2012


Contact Hours / week: 4 Total hours: 64. Table of Contents Architecture 3 Data Modeling Using the Entity-

Midterm 2: CS186, Spring 2015

Database Management Systems (CS 601) Assignments

Integrity constraints, relationships. CS634 Lecture 2

CPS510 Database System Design Primitive SYSTEM STRUCTURE

D.K.M COLLEGE FOR WOMEN(AUTONOMOUS),VELLORE DATABASE MANAGEMENT SYSTEM QUESTION BANK

IMPORTANT: Circle the last two letters of your class account:

Database Systems Management

INSTITUTE OF AERONAUTICAL ENGINEERING

St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad DEPARTMENT OF INFORMATION TECHNOLOGY Academic year

COURSE FILE INDEX ITEM DESCRIPTION

; Spring 2008 Prof. Sang-goo Lee (14:30pm: Mon & Wed: Room ) ADVANCED DATABASES

DATABASE MANAGEMENT SYSTEM

Database Applications (15-415)

INSTITUTE OF AERONAUTICAL ENGINEERING (AUTONOMOUS)

8) A top-to-bottom relationship among the items in a database is established by a

ADVANCED DATABASES ; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room ) Advanced DB Copyright by S.-g.

II B.Sc(IT) [ BATCH] IV SEMESTER CORE: RELATIONAL DATABASE MANAGEMENT SYSTEM - 412A Multiple Choice Questions.

Sample Question Paper

Course Outline Faculty of Computing and Information Technology

Mobile MOUSe MTA DATABASE ADMINISTRATOR FUNDAMENTALS ONLINE COURSE OUTLINE

Database Management Systems (COP 5725) Homework 3

PESIT Bangalore South Campus

Goals for Today. CS 133: Databases. Final Exam: Logistics. Why Use a DBMS? Brief overview of course. Course evaluations

Chapter 20 Introduction to Transaction Processing Concepts and Theory

CT13 DATABASE MANAGEMENT SYSTEMS DEC 2015

CIS 330: Applied Database Systems. ER to Relational Relational Algebra

Q.1 Short Questions Marks 1. New fields can be added to the created table by using command. a) ALTER b) SELECT c) CREATE. D. UPDATE.

Systems:;-'./'--'.; r. Ramez Elmasri Department of Computer Science and Engineering The University of Texas at Arlington

Database Applications (15-415)

Database Management Systems

Physical Design. Elena Baralis, Silvia Chiusano Politecnico di Torino. Phases of database design D B M G. Database Management Systems. Pag.

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

COSC Dr. Ramon Lawrence. Emp Relation

Data Analysis. CPS352: Database Systems. Simon Miner Gordon College Last Revised: 12/13/12

MCA (Revised) Term-End Examination December,

Database Management Systems (Solutions for Vol 1_Classroom Practice Questions)

Administrivia. CS186 Class Wrap-Up. News. News (cont) Top Decision Support DBs. Lessons? (from the survey and this course)

Review -Chapter 4. Review -Chapter 5

Transcription:

Course Name Course Code Class Branch INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 04 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK : DATABASE MANAGEMENT SYSTEMS : A40507 : II B. Tech II Semester Year : 015 016 Course Faculty : Computer Science and Engineering : Ms.E.Uma shankari, Assistant Professor, Mr. Krishna chaitanya, Associate Professor OBJECTIVES To meet the challenge of ensuring excellence in engineering education, the issue of quality needs to be addressed, debated and taken forward in a systematic manner. Accreditation is the principal means of quality assurance in higher education. The major emphasis of accreditation process is to measure the outcomes of the program that is being accredited. In line with this, Faculty of Institute of Aeronautical Engineering, Hyderabad has taken a lead in incorporating philosophy of outcome based education in the process of problem solving and career development. So, all students of the institute should understand the depth and approach of course to be taught through this question bank, which will enhance learner s learning process. PART A (Short Answer Questions) Q. No Questions Blooms Taxonomy Level Course Outcome UNIT I 1. List the advantages of DBMS? Knowledge 1. List the database applications? Knowledge. Define instances and schemas of database? Knowledge 4. Discuss data independence? Understand 5. Define (i) database (ii) DBMS Knowledge 6. Explain about database storage structure? Understand 7. Discuss transaction management? Understand 8. Explain the query processor? Understand 9. Define (i) entity (ii) attribute iii) entity set Knowledge 10. Define relationship and relationship set? Knowledge 11. Discuss about data definition language and commands? Understand 9 1. Discuss about data manipulation language and commands? Understand 9 1. Explain about querying relational data? Understand 9 14. Discuss how can you change the data in the table? Understand 9 15. Define a database administrator and specify any two responsibilities of DBA? Knowledge 16. Discuss how can you alter and destroy tables? Understand 9 17. Explain data model and list the types of data model used? Understand 18. Give the levels of data abstraction? Understand 19. Define weak and strong entity sets? Knowledge 0. Explain about stored and derived attributes? Understand UNIT II 1 Define relational database query? Knowledge 8 State about SELECT operation in relational algebra? Knowledge 8 State about PROJECT operation in relational algebra? Knowledge 8

4 Define aggregate functions and list the aggregate functions supported by SQL? Knowledge 10 5 Discuss the use of rename operation? Understand 8 6 Illustrate division operation? Apply 8 7 Discuss the basic form of SQL query? Understand 9 8 Define null value and explain how to restrict insertion of null values into the table. Knowledge 10 9 Define tuple variable with its syntax? Knowledge 8 10 Define primary key and foreign constraints with examples? Knowledge 10 11 Define string functions in SQL? Knowledge 6 1 Explain about trigger and its operations? Understand 10 1 Demonstrate how to add a NOT NULL column to a table? 14 Explain about unique, not null and default constraint? Knowledge 9 15 List the table modification commands in SQL? Knowledge 9 16 What is domain integrity? Give example. Understand 9 17 List the set operations of SQL? Knowledge 10 18 What is the use of group by clause? Understand 10 19 Discuss about the operators SELECT, PROJECT, UNION? Knowledge 10 0 Discuss about the operators renaming, joins, division? Knowledge 10 UNIT III 1 Define redundancy? Knowledge 5 List out the Problems related to decompositions? Knowledge 5 Define functional dependency? Why are some functional dependencies trivial? Knowledge 5 4 Discuss normalization? Understand 5 5 Illustrate functional dependency with example? Apply 5 6 Illustrate fully functional dependency with example? Apply 5 7 Define First Normal Form? Knowledge 5 8 Define Second Normal Form? Knowledge 5 9 Define Third Normal Form? Knowledge 5 10 Define Fourth Normal Form? Knowledge 5 11 Demonstrate transitive dependency? Give an example? Apply 5 1 Discuss Domain-Key Normal Form? Understand 5 1 Explain about Loss less-join dependency? Understand 5 14 Explain about BCNF? Understand 5 15 Explain about multi-valued dependencies? Understand 5 16 Define join dependency and fifth normal form? Knowledge 5 17 Define armstrong axioms for FD s? Knowledge 5 18 Explain the concept scheme refinement in database design? Understand 5 19 Define dependency preserving decomposition? Knowledge 5 0 Explain about inclusion dependency? Understand 5 UNIT IV 1 Define a transaction? List the properties of transaction Knowledge 7 Discuss different phases of transaction? Understand 7 Discuss recoverable schedules? Understand 7 4 Discuss cascade less schedules? Understand 7 5 Define two phase commit protocol? Knowledge 7 6 Demonstrate the implementation of isolation? Apply 7 7 Discuss the procedure to test serializability? Understand 7 8 Explain about different types of locks? Understand 7 9 Discuss about failure classification? Understand 7 10 Define a checkpoint? Knowledge 7 11 Discuss the failures that can occur with loss of non-volatile storage? Understand 7 1 Demonstrate conflict serializability? Apply 7 1 Discuss view serializability? Understand 7 14 Explain about transition states? Understand 7 15 Explain about acid properties? Understand 7 16 Explain about locking protocols? Understand 7 17 Define timestamp based protocol? Understand 7

18 Explain about multiple granularity? Understand 7 19 Explain about storage structure? Understand 7 0 Explain about remote backup systems? Understand 7 UNIT V 1 Discuss about data on external storage? Understand Explain clustered indexes? Understand 11 Discuss the primary and secondary indexes? Understand 11 4 Define Tree Indexing? Knowledge 11 5 Explain hash based indexing? Understand 11 6 Discuss the intuition for tree indexes? Understand 11 7 Define indexed sequential access method? Knowledge 11 8 Discuss about overflow pages and locking considerations of ISAM? Understand 11 9 Discuss the cost model of heap files? Understand 11 10 Discuss the cost model of sorted files? Understand 11 11 Discuss the cost model of clustered files? Understand 11 1 Explain about several ordered indexing? Understand 11 1 Explain about B+ tree index file? Understand 11 14 Explain about static hashing? Understand 11 15 Explain about organization of records in files? Understand 11 16 Discuss the impact of workload on indexes? Knowledge 11 17 Explain about RAID Understand 18 Define extendable hashing? Knowledge 11 19 Define linear hashing? Knowledge 11 0 Differentiate extendable vs linear hashing? Knowledge 11 PART B (Long Answer Questions) Q. No Questions Blooms Taxonomy Level Course Outcome UNIT I 1 Compare and contrast file systems with database systems? Apply 1 Define data abstraction and discuss levels of abstraction? Knowledge Discuss about different types of data models? Understand 4 Describe the structure of DBMS? Understand 5 Discuss additional features of the ER-Models. Understand 6 Discuss about the concept design with the ER Model? Understand 4 7 Write about views and updates on views? Knowledge 10 8 Explain different types of database users and write the functions of DBA? Understand 9 Explain about different types of integrity constraints? Understand 6 10 Discuss about the logical database design? Understand 4 11 Distinguish strong entity set with weak entity set? Draw an ER diagram to illustrate weak entity set? Apply 1 Differentiate relation schema and relational instance? Define the terms arity and degree of s relation? What are domain constraints? Understand 1 Explain about types of database languages with syntax and example? 14 Differentiate DBMS and RDBMS? Understand 10 15 Explain briefly about database users? Understand 10 16 Explain briefly about database administrator and responsibilities of DBA? Understand 10 17 Explain about TCL and DCL commands with examples? Apply 18 List the data definition language commands with examples? Apply 19 Explain about transaction management? Understand 10 0 Explain about class hierarchy and aggregation in dbms? Understand 10 UNIT II 1 Illustrate different set operations in relational algebra with an example? Apply 8 Define Join? Explain different types of joins? Knowledge 10 Discuss about selection and projection in relational algebra in detail? Understand 8 4 Define trigger and explain its three parts? Differentiate row level and statement level triggers? Knowledge 10

5 Illustrate group by and having clauses with examples? 6 Discuss about complex integrity constraints in SQL? Understand 6 7 Discuss different types of aggregate operators with examples in SQL? Understand 10 8 Define a nested query? a. Write a nested query to find the names of sailors who have reserved both a red and green boat? Knowledge 10 b. Write a nested query to find the names of sailors who have reserved all boats? Discuss correlated nested queries? 9 a. Write a query to find the names of sailors who have reserved a red boat? Understand 10 b. Write a query to find the names of sailors who have not reserved a red boat? Explain about union and intersect operator a. Write a query to find the names of sailors who have reserved boat 10 and 10 color is green? Understand 10 b. Write a query to find the names of sailors who have reserved a red or a green boat? 11 Discuss about active databases and write an example for trigger? Knowledge 10 1 Illustrate outer joins and its types with examples? Knowledge 10 1 Describe logical connectives of SQL with examples? Knowledge 10 14 Explain briefly about joins and its types with examples? Knowledge 10 15 a) Explain about relational algebra and its operations? b) Write a relational algebra query to find the names of sailors who reserved a Knowledge 10 red boat? 16 State the difference between primary key constraint and foreign key constarint? Understand 10 17 Explain briefly about key constraints with examples? Knowledge 10 18 Discuss about types of keys with valid examples? Understand 10 19 Discuss about types of string functions in dbms by using SQL queries. Understand 10 0 Explain the term constraint and specify different types of constraints? Understand 10 UNIT III 1 Illustrate redundancy and the problems that it can cause? Apply 5 Define decomposition and how does it address redundancy? Discuss the problem s Knowledge that may be caused by the use of decompositions? 5 Define functional dependencies. How are primary keys related to FD s? Knowledge 5 4 Define normalization? Explain 1NF, NF, NF normal forms? Knowledge 5 5 Compare and contrast BCNF with NF? Apply 5 6 Describe properties of decompositions? Understand 5 7 Explain about schema refinement in database design? Understand 5 8 Illustrate multi valued dependencies and fourth normal form with example? Apply 5 9 Discuss about join dependencies and fifth normal form? Understand 5 10 Illustrate inclusion dependencies with example? Apply 5 11 Discuss join dependencies and fifth normal form, and explain why 5NF? Understand 5 Define a functional dependency. List and discuss the six inference rules for 1 functional dependencies. Give relevant examples. Knowledge 5 1 Explain the role of functional dependency in the process of normalization. Understand 5 14 State the need for normalization of a database and explain various normal forms? Understand 5 15 Explain about properties of decomposition? Understand 5 UNIT IV 1 Explain ACID properties and Illustrate them through examples? Understand 7 Discuss how do you implement atomicity and durability? Understand 7 Illustrate concurrent execution of transaction with examples? Apply 7 4 Discuss serializability in detail? Understand 7 5 Discuss two phase locking protocol and strict two phase locking protocols? Understand 7 6 Describe timestamp based locking protocols? Understand 7 7 Describe validation-based locking protocols? Understand 7 8 Discuss in detail multiple granularity? Understand 7 9 Explain in detail storage structure? Understand 7 10 Discuss deferred database modification and immediate database modification? Understand 7 11 Discuss how do you recover from concurrent transactions? Understand 7 1 Explain buffer management? Understand 7 1 Explain different types of advanced recovery techniques? Understand 7 14 Write in detail about remote backup systems? Apply 7 15 Explain briefly about lock-based concurrency control? Understand 7

UNIT V 1 Write in detail about hash based indexing and tree based indexing? Apply 11 Compare I/O costs for all file organizations? Understand 11 Explain in detail about ISAM? Understand 11 4 Explain B+ trees? Discuss about this dynamic index structure? Understand 11 5 Demonstrate searching a given element in B+ trees? Explain with example? Understand 11 6 Illustrate insertion and deletion of an element in B+ trees with example? Apply 11 7 Write in detail about static hashing? Apply 11 8 Explain in detail about extendible hashing? Understand 11 9 Explain in detail about linear hashing? Understand 11 10 Compare and contrast extendible hashing with linear hashing? Apply 11 PART C (Problem Solving and Critical Thinking Questions) Q. No Questions 1 UNIT I Consider the database given by the following schemes. Customer (CustNo, SalesPersonNo,City) Sales_ Person(SalesPersonNo,SalesPersonName, CommonPrec,YearofHire) Give an expression in SQL for each of the following queries: a) Display the list of all customers by Cust_No with the city in which each is located. b) Select Cust No, city from Customer list the names of the sales persons who have accounts in Delhi. Blooms Taxonomy Level Course Outcome Apply 4 Explain the term aggregation in an ER model? Develop an ER diagram using aggregation that captures the following information : Employees work for projects. An employee working for a particular project uses various machinery. State any options you make. Also discuss about the ER diagram you have designed. Construct an E-R diagram for a car-insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recorded accidents. State any assumptions you make. Explain briefly about views in database and analyze and find whether view exists if the table is dropped from the database? Explain briefly about E-R diagram and state the primary key, foreign key, weak entity, strong entity,weak entity set for the given E-R diagram. Apply Apply 5 Analyze 10 6 Explain the structure of a DBMS With a neat diagram,. Apply 7 We can convert any weak entity set to strong entity set by simply adding appropriate attributes. Analyze why, then, do we have weak entity sets? Analyze 8 Explain about primary key constraint and foreign key constraint briefly and by using primary key and foreign key create tables for student and college. Analyze 10 9 Define constraint and explain each constraint with an example? Analyze 10 10 Create a database for the college library system by using E-R diagram and identify the relations between the entities, primary key and foreign key. Analyze

1 UNIT II Consider the following relational schema Employee (empno,name,office,age) Books(isbn,title,authors,publisher) Loan(empno, isbn,date) Write the following queries in relational algebra. Find the names of employees who have borrowed a book Published by McGraw-Hill? Find the names of employees who have borrowed all books Published by McGraw-Hill? Find the names of employees who have borrowed more than five different books published by McGraw-Hill? For each publisher, find the names of employees who have borrowed? Find the details of employee in ascending order. Given the Students relation as shown below For the Student relation find the details of student with highest CPI. Display the names of the students in reverse order. Find the details of employee in descending order. Find the average of CPI from the table. Find the details of student whose name starts with S. 4 5 6 7 Consider the following relations containing employee(name,salary,deptno) department (deptno, deptname, address) Solve the query by using the basic relational algebra operations(u, -,x,,p)? Explain about aggregation functions in detail and Write SQL Query to find second highest salary of employee from employee table? Write SQL Query to find the name of employee from Employee table whose ages are between 0 to 50. Consider the following information about a university database and create tables for following entities: Professors have an SSN, a name, an age, a rank, and a research specialty Graduate students have an SSN, a name, an age, and a degree program (e.g., M.S. or Ph.D.) Consider the following relational schema: Emp(eid: integer, ename: string, age: integer, salary: real) Works(eid: integer, did: integer, pcttime: integer) Dept(did: integer, dname: string, budget: real, managerid: integer) Write an SQL statement to add John Doe as an employee with eid = 101, age = and salary = 15, 000. Write an SQL statement to give every employee a 10 percent raise. Write an SQL statement to delete the Toy department. Display the details of employees in order. Define a query and explain SQL queries with solutions for the following data: Sid name login Age gpa 58 luther Luther1@hgmail. 5 1.8 com 1 Ricky Ricky.r@gmail.co 0.0 m 4 rosey Rosey01@gmail.c om 1.1 Modify this query so that only the login column is included in the answer. If the clause WHERE S.gpa >= is added to the original query, what is the set of tuples in the answer? Find the difference between the highest gpa and least gpa.

Display the sid and name whose name ends with Y. Find the details of a person whose age is least. 8 Explain Briefly about views and create views for the given data and Consider the following relations containing Emp(eid: integer, ename: string, age: integer, salary: real) Works(eid: integer, did: integer, pct time: integer) Dept(did: integer, budget: real, managerid: integer) Create a view SeniorEmp with the columns as sname, sage, salary from the given tables and implement update delete operations on the view table. Consider the following relations containing Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color: string) 9 Catalog(sid: integer, pid: integer, cost: real) Find the names of suppliers who supply some red part. Find the sids of suppliers who supply some red part and some green part. Find the pids of parts supplied by at least two different suppliers. Create a view by combining three tables. 10 Consider the following relations containing airline flight information: Flights(flno: integer, from: string, to: string, distance: integer, departs: time, arrives: time) Aircraft(aid: integer, aname: string, cruisingrange: integer) Certified(eid: integer, aid: integer) Employees(eid: integer, ename: string, salary: integer) Identify the flights that can be piloted by every pilot whose salary is more than 10000. Find the eids of employees who make the second highest salary. Find the total amount paid to employees as salaries. Display the flight details in descending order. UNIT III 1 Consider a relation scheme R = (A, B, C, D, E, H) on which the following functional dependencies hold: {A >B, BC > D, E >C, D >A}. Write the candidate keys of R? Apply 5 Consider the following relational schemes for a library database: Book (Title, Author, Catalog_no, Publisher, Year, Price) Collection (Title, Author, Catalog_no) the following are functional dependencies: a. Title Author --> Catalog_no Apply 5 b. Catalog_no --> Title Author Publisher Year c. Publisher Title Year --> Price d. Assume {Author, Title} is the key for both schemes. Apply the appropriate normal form for Book and Cancellation? Consider a schema R (A, B, C, D) and functional dependencies A -> B and C ->D. Solve and find whether the decomposition of R into R1 (A, B) and R(C, D) Apply 5 belongs to which one or both (dependency preserving and loss less join)? 4 Show that: if α β and α γ then α βγ Apply 5 Explain briefly about functional dependency and trivial functional dependency and FD axioms. Apply 5 UNIT - IV Consider the following transactions with data items P and Q initialized to zero: T1: read(p); read(q); If P=0 then Q:=Q+1; write(q); T: read(q); read(p); If Q=0 then P:=P+1; write(p); Solve and find any non-serial interleaving of T1 and T for concurrent execution leads to a serializable schedule or non serializable schedule. Explain? Apply 7 Analyze which of the following concurrency control protocols ensure both conflict serializability and freedom from deadlock? Explain the following: a. -phase locking b. Time-stamp ordering Consider the transactions T1, T, and T and the schedules S1 and S given below. T1: r1(x);r1(z);w1(x);w1(z) T: r(y);r(z);w(z) T: r(y);r(x);w(y) Apply 7

S1: r1(x);r(y);r(x);r(y);r(z); w(y);w(z);r1(z);w1(x);w1(z) S: r1(x); r(y); r(y); r(x); r1(z); r(z); w(y); w1(x); w(z); w1(z) Analyze which one of the schedules is conflict-serializable? 4 Suppose that there is a database system that never fails. Analyze whether a recovery manager required for this system? Apply 7 UNIT V 1 Consider a B+-tree in which the maximum number of keys in a node is 5. Calculate the minimum number of keys in any non-root node? Apply 11 In the index allocation scheme of blocks to a file, Calculate on what maximum possible size of the file depends? Apply 11 A clustering index is defined on the fields of which type? Analyze them. Apply 11 4 Calculate the minimum space utilization for a B+ tree index? Apply 11 5 Consider the B+ tree index of order d = shown in Figure Apply 11 a. Show the tree that would result from inserting a data entry with key 9 into this tree. b. Show the B+ tree that would result from deleting the data entry with key 8 from the original tree, assuming that the left sibling is checked for possible redistribution Prepared by: Ms E Uma shankari, Assistant Professor. HOD, COMPUTER SCIENCE AND ENGINEERING