0% found this document useful (0 votes)
36 views

Assignment 1

This individual assignment asks students to design ER diagrams for 3 systems based on given entities, attributes, and business rules. Students must show the relationships and cardinalities between entities for a hospital management system tracking patients, doctors, appointments, and medical conditions. They must also create ER diagrams for a university management system and online shopping system.

Uploaded by

salimamansaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Assignment 1

This individual assignment asks students to design ER diagrams for 3 systems based on given entities, attributes, and business rules. Students must show the relationships and cardinalities between entities for a hospital management system tracking patients, doctors, appointments, and medical conditions. They must also create ER diagrams for a university management system and online shopping system.

Uploaded by

salimamansaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment 1 - weight: 15%.

This is an individual assignment which will be done by every student. Based on the
problem specification given below, design a database using ER diagram by indicating all
necessary components of ER diagram such as, Entities, Attributes, Relationships,
cardinality and key constraints.

Question 1: Design an ER diagram for a hospital management system that tracks patients,
doctors, appointments, and medical conditions. Show the relationship and cardinalities.

Entities:

- Patients: contains information about each patient, including name, address, and contact
information
- Doctors: contains information about each doctor, including name, specialization, and
contact information
- Appointments: contains information about each appointment, including date, time, and
doctor-patient relationship
- Medical Conditions: contains information about each medical condition, including name
and description
Business rules:

- Patients: each patient must have a unique ID, a patient can have multiple appointments
- Doctors: each doctor must have a unique ID, a doctor can treat multiple patients
- Appointments: each appointment must have a unique ID, a patient can schedule multiple
appointments with different doctors, and a doctor can have multiple appointments with
different patients
- Medical Conditions: each medical condition must have a unique ID, a patient can have
multiple medical conditions, and a medical condition can affect multiple patients
Question 2: Develop an ER diagram for a university management system that tracks students,
courses, professors, and grades. Show the relationship and cardinalities and use the business
rules for each entity.

Entities:

- Students: contains information about each student, including name, address, and contact
information
- Courses: contains information about each course, including course name, course code,
and department
- Professors: contains information about each professor, including name, department, and
contact information
- Grades: contains information about each student's grade for a particular course
Business rules:
- Students: each student must have a unique ID, a student can take multiple courses, and a
student can have multiple grades
- Courses: each course must have a unique code, a course can have multiple professors,
and a course can have multiple students
- Professors: each professor must have a unique ID, a professor can teach multiple courses,
and a professor can have multiple students in their courses
- Grades: each grade must have a unique ID, a grade must be associated with a particular
course and student, and a student can have multiple grades for different courses
Question 3: Design an ER diagram for an online shopping system that tracks customers, orders,
products, and payments. Show the relationship and cardinalities and use the business rules for
each entity.

Entities:
- Customers: contains information about each customer, including name, address, and
contact information
- Orders: contains information about each order, including the order ID, date, and customer
details
- Products: contains information about each product, including product name, description,
and price.
- Payments: contains information about each payment made by a customer for a particular
order
Business rules:
- Customers: each customer must have a unique ID, a customer can place multiple orders,
and a customer can have multiple payment methods
- Orders: each order must have a unique ID, an order can have multiple products, and an
order must be associated with a customer
- Products: each product must have a unique ID, a product can be associated with multiple
orders, and a product can have multiple variations (e.g., size, color)
- Payments: each payment must have a unique ID, a payment must be associated with a
particular order, and an order can have multiple payments associated with it (e.g., partial
payments)

You might also like