dbmstotal assignment (1)
dbmstotal assignment (1)
Theory assignments:
Assignment 1
1. State the differences between file system and DBMS.
2. Explain the advantages and disadvantages of indexing.
3. If a relational model has N attributes as {A1, A2...An} and candidate keys as {A1,
A2}, then the number of super keys?
4. Draw an ER diagram to model an online bookstore. The model should container the
following entities author, book, publisher, customer, shopping basket, warehouse.
5. Construct a B + -tree for the following set of key values: (2, 3, 5, 7, 11, 17, 19, 23, 29,
and 31) Assume that the tree is initially empty and values are added in ascending
order. Construct B + trees for the cases where the order of the nodes is as follows
a. Three
b. Five
c. Seven
Assignment 2
6. Consider the precedence graph of given figure. Is the corresponding schedule conflict
11. Explain the ACID properties in a database management system and why they are
important.
12. Consider the following table:
Student(ID, Name, Course, Instructor, Grade)
The following functional dependencies exist:
1. ID → Name, Course, Grade
2. Course → Instructor
identify the highest normal form of the table and explain the normalization process.
13. You are tasked with designing a database for an online bookstore. What tables and
relationships would you create to efficiently store information about books, authors,
customers, and orders?
14. What are relational integrity constraints? Discuss entity and referential constraints.
15. Insert the following key values 6, 16, 26, 36, 46 on a B+ tree with order = 3.
Assignment 4
16. Which key is responsible for maintaining referential integrity? How it maintain
referential integrity, Explain with example?
17. Determine the closure of the following set of functional dependencies for a relational
scheme R (A, B, C, D, E), F= {A͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢͢ →BC, CD→E, B→D, E→A}. List out the candidate keys
of R?
18. What is RDBMS?
19. Explain three level of architecture of DBMS?
20. Draw the ER Diagram for a Hospital Management System
Assignment 5
a. Find the loan number for each loan of an amount greater than $ 1200.
b. Find the names of all customers of the Bank who have a loan, an account, or both
from the Bank.
c. Find the customers of the Bank who have an account but not a loan.
d. Find the names of all customers with loans at the Perry ridge branch.
e. Find all customers who have an account at all branches located in Brooklyn city
Assignment 4:
1.
We want to change the country name for one of our tables, change David’ country name UK
to India and commit the operation.
2. Our customers' table, while performing some operations, we mistakenly updated the
first name of a customer as "JOHN", whereas it should be "PETER". Hence, we can
roll back our transaction to its original state.