Assignment 1 - DB
Assignment 1 - DB
FALL 2024
Assignment 1
Total Marks: 50 (20+15+15) Due Date: 01 November 2024
Faculty members: Dr. Anam Mustaqeem (O1,O2,O8), Shah Nawaz (O3,O6,O7), Sidra Noureen (O4,O5)
CLO2: The students will be able to analyze requirements and Design conceptual, logical and physical database schemas using different data models.
Instructions:
1. This is a handwritten assignment. Do the assignment on A4 Page. No torn papers from registers
will be accepted. Please draw diagrams on plain white paper
2. Do this assignment in group of maximum 2 students.
3. Late submission will cause you to lose 10% per day. After three days of deadline no submissions
will be entertained.
4. Copied assignments will get straight ZERO for all those who will submit same copy.
5. There will be a quiz based on assignment.
Task 1 Analyze the scenario given and Design an E-R diagram by following these steps
1. Identify entities in the scenario.
2. Find out the relationships (Cardinality) among the entities.
3. Enlist attributes of the entities.
Document all assumptions that you make about the mapping constraints.
Scenario The Motor Vehicle Branch administers driving tests and issues driver's licenses.
Any person who wants a driver's license must take a learner's exam at any Motor
Vehicle Branch in the province. If he/she fails the exam, he can take the exam again any
time after a week of the failed exam date, at any branch. If he passes the exam, he is
issued a license (type = learner's) with a unique license number. A learner's license may
contain a single restriction on it. The person may take his driver's exam at any branch
any time before the learner's license expiry date (which is usually set at six months
after the license issue date). If he passes the exam, the branch issues him a driver's
license. A driver's license must also record if the driver has completed driver's
education, for insurance purposes.
Task 2 Design the ERD showing all entities, relationships, and primary and foreign keys,
while handling many-to-many relationships properly.
Scenario The university runs multiple research projects, identified by Project_ID, with details like
title, start date, end date, and budget. Each project belongs to a department, and each
department has a Department_ID, name, and head. Faculty members lead projects and
can supervise multiple projects, but a project can have only one lead supervisor at a
time. Faculty members have attributes like Faculty_ID, name, and position.
Graduate students are assigned to projects, each working on a specific aspect of the
project. Students are described by Student_ID, name, and enrollment year. Each
student works on only one project at a time, but a project may have multiple students.
For each project, the university records equipment used (Equipment_ID, description,
purchase date) and its availability status.
Task 3 Design the ERD by analyzing above airline reservation system scenario, identifying the
entities, relationships, and any primary and foreign keys, and show how bookings and
flight schedules are managed.
Scenario An airline operates flights, each identified by Flight ID and associated with details like
departure and arrival cities, flight duration, and status. Flights are managed by specific
planes (Plane_ID, make, capacity) and each flight can only use one plane, though planes
are used across multiple flights.
Passengers, identified by Passenger_ID, can book tickets for flights. Each booking is
identified by Booking_ID and includes details such as seat number, class
(economy/business), price, and booking status. Flights are handled by a team of crew
members, including a Pilot and flight attendants, each with Crew_ID, name, and role.
Each crew member can work on multiple flights, and each flight must have a pilot and
assigned flight attendants.
====================================THE END====================================