ERD Diagram Questions
ERD Diagram Questions
employee, their job and the branch in which they work. For each employee, the
database needs to hold information on their name, their payroll number (which
is unique to them and has two letters followed by four digits, the first letter is
always T or M), the branch in which they work and the code of the job that they
perform. For each job, the job code and description must be stored along with
the rate of pay for that job. For each branch of the company, the branch number,
will be stored. The job code and branch numbers are both single letters. The
weighting ensures that employees living in larger cities, where housing costs
are higher, receive more pay than workers in areas where housing costs are
lower. This is a decimal value between 0 and 2 stored to two decimal places.
A restaurant management system needs to manage information about customers, reservations, orders,
and menu items. Each customer has a unique customer ID, name, phone number, and email address.
Each reservation has a unique reservation ID, a date, a time, and the number of guests, and is associated
with a specific customer. Each order has a unique order ID, a date, and a total amount, and is associated
with a specific reservation. Each menu item has a unique item ID, a name, a description, and a price. An
order can include multiple menu items, and a menu item can be part of multiple orders.
Question: Draw a comprehensive Entity-Relationship Diagram (ERD) for this restaurant management
system. Identify all the entities, their attributes, and relationships, including any many-to-many
relationships, and describe how they are connected.
2. E-Learning Platform
An e-learning platform requires a database to manage information about students, instructors, courses,
and enrollments. Each student has a unique student ID, a name, an email address, and a date of birth.
Each instructor has a unique instructor ID, a name, an email address, and a department. Each course has
a unique course ID, a title, a description, a credit value, and an instructor ID (foreign key). Each
enrollment has a unique enrollment ID, a date of enrollment, and a grade. Each student can enroll in
multiple courses, and each course can have multiple students enrolled. Additionally, instructors can
teach multiple courses.
Question: Draw a detailed Entity-Relationship Diagram (ERD) for the e-learning platform. Define all
entities, their attributes, and the relationships between them, including any junction tables needed for
many-to-many relationships.
Question: Create a comprehensive Entity-Relationship Diagram (ERD) for this hospital management
system. Specify all entities, their attributes, and the relationships, including how they interact with one
another and any necessary junction tables for many-to-many relationships.
A corporate employee management system needs to handle employee details, departments, projects,
and performance reviews. Each employee has a unique employee ID, a name, a position, a salary, and a
department ID (foreign key). Each department has a unique department ID and a name. Each project has
a unique project ID, a name, a start date, and an end date. Each performance review has a unique
review ID, a review date, a rating, and feedback, and is associated with a specific employee. Employees
can be assigned to multiple projects, and each project can have multiple employees.
Question: Draw a comprehensive Entity-Relationship Diagram (ERD) for this corporate employee
management system. Identify entities, their attributes, and their relationships, including any many-to-
many relationships and how they are managed in the database.