CS3492 Database Management Systems
Important Questions
Unit 1
- What is datamodel? List its different types. Explain with suitable example.
- Discuss about domain integrity. Give an example.
- Discuss the main categories of data models. What are the basic differences between the relational model, the object model, and the XML model?
- Describe the three-schema architecture. Why do we need mappings between schema levels? How do different schema definition languages. support this architecture?
- Explain the database management system architecture with a neat sketch.
- Outline select and project operations in relational algebra with an example.
- What is embedded SQL? Explain with an example.
Unit 2
- What is normalizations? List its benefits and explain briefly about 3NF, 4NF and BCNF with suitable example.
- Illustrate functional dependency with an example.
- Discuss about dependency preservation.
- Consider the following schemas. The primary key for each relation is denoted by the underlined attribute.
LIVES (person-name, street, city)
WORKS (person-name, company-name, salary)
LOCATED-IN (company-name, city)
MANAGES (person-name, manager-name)
Write relational algebra expressions for the following queries:
(i) Find the name of all employees (i.e., persons) who work for the City Bank company (which is a specific company in the database).
(ii) Find the name and city of all employees who work for City Bank.
(iii) Find the name, Street and city of all employees who work for City Bank and earn more than $10,000.
(iv) Find all employees who live in the same city as the company they work for.
(v) Find all persons who do not work for City Bank.
(vi) Find the second largest salary earned by the employee. - Elaborate on first normal form, second normal form and third normal form with examples.
- Explain Boyce Codd normal form, fourth normal form and fifth normal form with examples.
- Consider the relation for car dealership given below.
Dealership (Uniqueid, Customer-name, Purchase, Address, Newsfeed, Supplier, Price)
Normalize the table so that all resulting tables are in 3NF stating the definitions of various normal forms.
Unit 3
- Demonstrate conflict serializability and view serializability.
- Discuss in detail about Multiple Granularity.
- Explain different types of locks.
- Explain the concepts of serial, non-serial and conflict-serializable schedules with examples.
- What is the two-phase locking protocol? How does it guarantee serializability? Explain with an example.
- What is a transaction? List and explain ACID properties with an example.
- Outline the two phase locking protocol with an example.
- What is recovery? Outline the steps in the Algorithm for Recovery and Isolation Exploiting Semantics (ARIES) algorithm with an example.
Unit 4
- Explain B+ trees. Discuss about this Dynamic Index Structure.
- Compare I/O costs for all File Organizations.
- Construct a B+- tree for the following set of key values:
(2,3,5,7,11, 17, 19, 23, 29, 31)
(i) Assume that the tree is initially empty and values are added in ascending order, Construct B+ trees for the cases where the number of pointers that will fit in one node is as follows:
(1) Four
(2) Six
(3) Eight
(ii ) Show the form of the tree after each of the following series of operations
(1) Insert 9
(2) Insert 10
(3) Delete 23
(4) Delete 19 - Brief on Static and Dynamic Hashing.
- Suppose that we are using extendable hashing on a file that contains records with the following search-key values:
(2,3,5,7,11,17,19,23,29,31)
Show the extendable hash structure for this file if the hash function. is h(x) = x mod 8 and buckets can hold three records. - Outline B tree index and B+ tree index with an example.
- Explain static hashing with an example.
Unit 5
- Explain distributed database architecture in detail.
- Explain in detail about key value stores and role based access control in advanced database management systems.
- Describe in detail Query Processing and Optimization.
- Discuss on the following.
(i) Access control based on privileges
(ii) Role Based access control - What is a distributed transaction? Explain distributed query processing with an example.
- What is NoSQL? Outline the features of NoSQL databases.
- Discuss role based access control with an example.