Assignment 1
Assignment 1
Release Date: 9th February 2024 Submission Date: 16th February 2024
Instruction: Make a separate register/notebook for solving the assignment problems in handwritten
format. Upload the scan copy of the solution in MS Teams, link of which will be shared by course
instructor. At the end of the semester, submit the register/notebook to the course instructor. You can
get back it from course instructor after his/her signature at the end of CWS evaluation.
Q.1 List four significant differences between a file-processing system and a DBMS.
Q.2 Explain the difference between two-tier and three-tier architectures. Which is better suited for
Web applications? Why?
Q.3 We can convert any weak entity set to a strong entity set by simply adding appropriate
attributes. Why, then, do we have weak entity sets?
Q.4 Explain the distinctions among the terms primary key, candidate key, Super key and foreign key
with examples.
Q.5 Create an E-R Diagram for an airline database. The database must keep track of customers and
their reservations, flights and their status, seat assignments on individual flights, and the schedule
and routing of future flights.
Q.6 Convert E-R diagram of Q.5 into a set of relational schemas, and a list of constraints, including
primary-key and foreign-key constraints.
Q.7 Explain the distinction between condition-defined and user-defined constraints. Which of these
constraints can the system check automatically? Explain your answer.
Q8. Analyse the concept of data independence in the context of database systems. Discuss the
differences between physical, logical, and external data independence and provide example of each.
Q9. Explain the functions and responsibilities of a Database Administrator (DBA) in a database
system. Discuss the key tasks performed by a DBA to ensure the efficient operation and maintenance
of the database.
An online bookstore wishes to design a database to manage its operations. The bookstore
sells a variety of books, including fiction, non-fiction, textbooks, and rare editions.
Customers can browse books, place orders, and make payments online. The bookstore also
offers membership programs.
The management of the bookstore has provided the following requirements for the database:
1. Books: Each book has a unique ISBN (International Standard Book Number), title,
author(s), genre, publication year, and price. Some books may be categorized as
bestsellers or recommended reads.
2. Authors: Authors are associated with one or more books. Each author has a unique
author ID, name, and biography.
3. Customers: Customers can register on the website to create an account. They provide
their name, email address, shipping address, and payment information. Customers
may have multiple orders associated with their account.
4. Orders: Customers can place orders for one or more books. Each order has a unique
order ID, date and time of purchase, total price, and payment status (e.g., paid,
pending). An order can contain multiple items, each representing a book along with
its quantity and price.
5. Payments: Payments are made for orders placed by customers. Each payment has a
unique payment ID, payment date, amount, and payment method (e.g., credit card,
PayPal). A payment is associated with a single order.
6. Membership Programs: The bookstore offers different membership programs, such
as silver, gold, and platinum, with varying benefits. Customers can enroll in a
membership program, which may provide discounts on purchases and access to
exclusive offers.
Q12. Identify Primary key, Candidate Key, Super Key and Foreign key for theRelational schema of
Entity Department and Entity Buy-Order defined in Figure1 above.
Q.14 Explain different kinds of database users with their roles and responsibilities.
Q.15 Design a generalization–specialization hierarchy for a motor vehicle sales company. The
company sells motorcycles, passenger cars, vans, and buses. Justify your placement of attributes at
each level of the hierarchy. Explain why they should not be placed at a higher or lower level.
Q.19 List five responsibilities of a database-management system. For each responsibility, explain the
problems that would arise if the responsibility were not discharged.