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

Tutorial DBMS

Tutorial

Uploaded by

Amira Ilyana
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)
27 views

Tutorial DBMS

Tutorial

Uploaded by

Amira Ilyana
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/ 3

UNIVERSITI KUALA LUMPUR KAMPUS KOTA

MALAYSIAN INSTITUTE OF INFORMATION TECHNOLOGY

Name of Course DATABASE MANAGEMENT SYSTEMS

Course Code IEB20603

Lecturer AMALIA @ AMELIA MUKHLAS

Semester / Year March 24

Assessment TUTORIAL 2

Exercise 1: Online Bookstore Data Model

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.

Exercise 2: University Course Registration Data Model

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.

Exercise 4: E-commerce Product Inventory Data Model

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

Attributes: genre, customer ID, book ID

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

Attributes: student ID, subject, name, email, course ID, professor ID

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

Attributes: name, prices, description, stock quantity, customers ID, carts ID

Relationship: platform sells various product, customer can add product to their carts, customer
can make
purchases, customers can leave reviews

You might also like