Tutorial DBMS
Tutorial DBMS
Assessment TUTORIAL 2
Scenario: You are tasked with designing a data model for an online bookstore. The
bookstore sells various types of books, including fiction, non-fiction, and textbooks.
Customers can create accounts, browse books, add them to their shopping carts, and make
purchases. The system should also keep track of authors, publishers, and orders.
Exercise: Identify the entities, attributes, and relationships from the given scenario.
Scenario: You are designing a data model for a university's course registration system.
Students can enroll in multiple courses each semester, courses have prerequisites, and
professors teach multiple courses. The system also needs to keep track of student grades
and course schedules.
Exercise: Identify the entities, attributes, and relationships from the given scenario.
Exercise 3: Hospital Patient Management Data Model
Scenario: You are tasked with designing a data model for a hospital's patient management
system. The hospital has various departments, including emergency, cardiology, oncology,
etc. Patients are admitted to the hospital, assigned to specific departments, treated by
doctors, and undergo medical procedures. Additionally, the hospital maintains records of
diagnoses and prescriptions.
Exercise: Identify the entities, attributes, and relationships from the given scenario.
Scenario: You are designing a data model for an e-commerce platform's product inventory
system. The platform sells various products across different categories. Each product has
attributes such as name, price, description, and stock quantity. Customers can add products
to their carts, make purchases, and leave reviews.
Exercise: Identify the entities, attributes, and relationships from the given scenario.
Exercise 1
Entities: customers, books, authors, publishers, and orders
Relationship: bookstore sells various type of book, customer can create accounts, customer can
browse books,
customer can add books to their shopping carts, customer can make purchases, system can
keep track of the
authors, publishes and orders.
Exercise 2
Entities: course, grade, students, professors
Relationship: student can enroll multiple courses, professor teach multiple courses
Exercise 3
Entities: hospital, departments, patients, doctors
Attributes: patient ID, department ID, name, age, doctor ID, hospital name
Relationship: patient admitted to the hospital, patient assigned to specific departments, the
doctor treated the
patient, patients undergo medical procedures, hospital maintains records of diagnoses and
prescriptions
Exercise 4
Entities: platform, products, customers, carts
Relationship: platform sells various product, customer can add product to their carts, customer
can make
purchases, customers can leave reviews