DBMS - 06 - Practice Problems (ERD)
DBMS - 06 - Practice Problems (ERD)
An event organizing company named “Elite” is planning to convert their analog file system into a digital
database. The new system should be capable of handling their current processes.
For every event, they maintain records that include the event name, start date, end date, venue, and a
description. They also store detailed information about the venue, such as its address, capacity, and
other relevant details. Each event is assigned a supervisor, whose contact information and records of
previously organized events must be accessible to current customers.
Additionally, Elite keeps detailed records of its employees. For every event, they track the associated
expenses, categorizing them into service-related expenses and material/item purchase expenses.
They want this categorization to remain intact when transitioning to the database system.
Elite also maintains guest lists for events, along with records of attendees. The database should be
designed to accommodate all these functionalities.
Now, design an ER diagram for “Elite” that fulfills these requirements.
ERD Practice Problems
A well-known car rental company in Bangladesh, named "SHEBA - Rent A Car," has decided to automate its manual system
to better serve its clients. The data specifications provided to a software company are as follows:
The car rental company operates several branches throughout Bangladesh. For each branch, the system will store
information, including the branch’s phone number, address (consisting of road number, area, city, and zip code), and a
unique branch number assigned across the organization. Each branch has multiple employees, including a manager
responsible for overseeing the branch's daily operations.
The system will store details about each employee, such as their name, title, date of hire, pay, and experience. Every
employee will be identified by a unique staff ID.
Each branch also has several rental cars available. The system will record details about each car, including its brand name,
model number, license plate number, category, daily rental cost, status, and the driver’s name. A branch may have multiple
cars of the same model. Cars will be categorized into types such as Private, Noah, Ambulance, Mini Bus, etc. The status
field will indicate whether a car is available for rental or not.
Customers must register with the company before renting a car. For each customer, the system will store their first and last
names, address, registration date, and the branch they are associated with. Each customer will be assigned a unique
customer ID.
Customers who register will be able to rent cars. The system will record details of each rental transaction, including the
unique rental number, renter’s name and phone number, the license plate number of the rented car, and the date and time
of the rental.
Now, design an ER diagram for this scenario that fulfills the described requirements.
ERD Practice Problems
The UIU CSE Alumni Association is planning to launch a web portal to connect job seekers from UIU with
recruiters globally. The portal will manage profiles for job seekers, where each profile includes a user ID,
name, unique email, address, date of birth, educational qualifications, and job experiences. Educational
qualifications consist of the degree name, institution name, year achieved, and grade, while job
experiences include the job title, institution name, job type, starting date, and duration.
Job seekers can be hired by individual recruiters or companies. Recruiters will have their own profiles,
which include a recruiter ID, name, email, and reputation score. Both recruiters and companies can post
job openings on the portal. Each job post contains the posting date, time, content, and the number of
viewers. The system also tracks which job seekers show interest in specific job posts. A recruiter or
company can hire multiple job seekers for a single job posting.
The portal also maintains information about companies, including a unique company ID, name, address,
and contact number. Additionally, users can provide anonymous reviews of companies, with each review
consisting of a review ID, date, time, and review details.
Design an ER diagram for the scenario that meets all the specified requirements.
ERD Practice Problems
The Art Gallery stores all artist information, including a unique artist_id, name, age, and address.
An artist can have multiple addresses, each with a holding number, street name, and city. An artist
can create many artworks.
Art is described by a unique art_id and title. Each artwork has detailed information, including
category, style, subject, medium, material, and tags. The system also records the date when the
artwork was created.
Curators take care of the artworks and place them in appropriate rooms. An artwork can be
managed by multiple curators, and a curator can manage multiple artworks. Curators assign a
virtual room for each artwork. A room has a unique room_id, title, and size. The system also stores
the date when a curator places an artwork in a room. Curators have a unique curator_id, name,
and hiring date.
Art lovers can view the artworks, and they have a unique id, name, and address.
Design an ER diagram for the scenario.
ERD Practice Problems
You have been tasked with designing an Employee Tracking Database for CITS UIU.
The system aims to track employee information, their job history, and certifications.
Employee information includes an employee ID, first name, last name, NID, address,
city, state, zip code, home phone number, and email address. Each employee will have
two addresses: current and permanent.
Job history includes details such as job title, job description, pay grade, salary, joining
date, and total years of service.
For certifications, the system will store the certification name, type, complexity level,
and the date it was achieved. An employee can hold multiple designations
simultaneously (e.g., Professor, Director).
Design an ER diagram for this application. Ensure that the multiplicity of each
relationship is clearly marked in the diagram. Identify and label key attributes in the
diagram. If you make any assumptions, please state them explicitly.
ERD Practice Problems
You have been tasked with designing an Employee Tracking Database for CITS UIU.
The system aims to track employee information, their job history, and certifications.
Employee information includes an employee ID, first name, last name, NID, address,
city, state, zip code, home phone number, and email address. Each employee will have
two addresses: current and permanent.
Job history includes details such as job title, job description, pay grade, salary, joining
date, and total years of service.
For certifications, the system will store the certification name, type, complexity level,
and the date it was achieved. An employee can hold multiple designations
simultaneously (e.g., Professor, Director).
Design an ER diagram for this application. Ensure that the multiplicity of each
relationship is clearly marked in the diagram. Identify and label key attributes in the
diagram. If you make any assumptions, please state them explicitly.
Some More Scenarios