Database Systems Assignment No 2
Database Systems Assignment No 2
2
Instructions
Please follow the instructions below for completing and submitting your Database Systems assignment:
• The entire assignment must be completed in handwritten form. Ensure your handwriting is clear
and legible.
• Use A4-sized paper for writing your assignment.
• Write your answers neatly and structure your responses clearly.
• The deadline for submission is 14th November 2024. Late submissions will not be accepted.
• Submit the completed assignment in class during the class session on the deadline date.
• Ensure the work is entirely your own. Assignments that show signs of plagiarism or copying from
others will be subject to penalties.
• Be thorough in your answers and make sure to cover all aspects of each question.
If you have any questions or need further clarification, please feel free to reach out at
[email protected].
1. UPS prides itself on having up-to-date information on the processing and current location of each
shipped item. To do this, UPS relies on a company-wide information system. Shipped items are
the heart of the UPS product tracking information system. Shipped items can be characterized by
item number (unique), weight, dimensions, insurance amount, destination, and final delivery
date. Shipped items are received into the UPS system at a single retail center. Retail centers are
characterized by their type, unique ID, and address. Shipped items make their way to their
destination via one or more standard UPS transportation events (i.e., flights, truck deliveries).
These transportation events are characterized by a unique schedule number, a type (e.g., flight,
truck), and a delivery Route. Please create an Entity Relationship diagram that captures this
information about the UPS system. Be certain to indicate identifiers and cardinality constraints.
2. Create an ERD for a social media platform. Users can follow each other, make posts, and like or
comment on posts. Posts can include multiple tags. Users can have different types of relationships,
such as friends, family, and colleagues. Each post has a timestamp, and each comment has an
author and a timestamp. Users can create groups, and each group can have multiple members
and posts.
3. Design an ERD for a healthcare system. The system tracks doctors, patients, appointments,
treatments, and referrals. Each doctor has a specialization, and each patient can have multiple
appointments. Doctors can refer patients to other doctors, and each referral has a reason and
date. Treatments are prescribed to patients during appointments.
4. Create an ERD for a job portal. The system tracks job postings, companies, applicants, and
applications. Each company can post multiple jobs, and each applicant can apply to multiple jobs.
Each job posting has a title, description, and deadline. Applications include status and submission
date.
5. Design an ERD for a multi-branch hospital system. Each branch has multiple departments, each
department has its own doctors, nurses, and patients. Patients are assigned to specific wards
within departments, and each patient may receive multiple treatments. Doctors can refer patients
to other doctors in different branches for specialized treatments. Each treatment includes
medications, with details on dosage, duration, and administration schedule.
6. Create an ERD for a supply chain system involving manufacturers, suppliers, warehouses,
distribution centers, and retailers. Each product is manufactured by a specific manufacturer, then
sent to suppliers, stored in warehouses, and finally delivered to retailers. Each stage in the process
has associated shipment details, tracking IDs, and estimated delivery times. Products can be
returned at any stage, with a record of the return reason and date.
7. Design an ERD for a banking system with customers, accounts, loans, branches, and employees.
Customers can have multiple types of accounts (checking, savings, investment) and may apply for
loans. Each loan application has details such as amount, interest rate, approval status, and due
date. Employees work at branches, and each branch has multiple accounts and loans associated
with it.
8. Create an ERD for a university system managing research collaborations. Professors can lead
multiple projects, collaborate with other professors, and have PhD students working under them.
Each project has a specific funding source, timeline, and deliverables. Publications are created
under each project and have multiple authors. Each publication is linked to conferences or
journals, where it is presented or published.
9. Create an ERD for a vehicle rental company with branches, vehicles, customers, and rental
agreements. Vehicles are available at multiple branches, and each branch can have different
availability. Customers can rent vehicles, each rental agreement specifying rental dates, rates, and
vehicle condition upon return.
10. Design an ERD for a publishing house system. The system tracks authors, editors, books, and
chapters. Authors write multiple books, and each book contains chapters. Editors are assigned to
specific books, with a primary editor responsible for overall coordination. Books are published by
specific publishers, and each publisher has multiple contracts with authors.