0% found this document useful (0 votes)
37 views4 pages

5000 GC

Ivbib obob obbhob bo on

Uploaded by

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

5000 GC

Ivbib obob obbhob bo on

Uploaded by

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

Case Study: GYM Management System (GMS)

Consider a Gym Management System (GMS) for a large fitness center,


which offers various

membership plans, a variety of fitness classes, personal training sessions,


health assessments,

and equipment rentals. The system also tracks gym attendance, manages
billing, maintains

workout routines, and stores information on gym staff, trainers, and


clients.

The gym consists of multiple facilities (e.g., Weight Room, Cardio Area,
Swimming Pool,

Yoga Studio). Each facility has equipment (e.g., Treadmills, Free Weights,
Exercise Bikes),

with details on the Model, Serial Number, Maintenance Schedule, and


Location (Facility). The

gym offers different types of fitness classes (e.g., Yoga, Pilates, Spinning),
each managed by

an instructor.

The gym employs various staff members, including trainers, instructors,


and support staff. Each

staff member has a Staff ID, Name, Phone Number, Email, Position, and
Salary. Trainers

specialize in certain areas (e.g., Weight Training, Cardio, Yoga) and provide
personal training

sessions for clients. Instructors lead fitness classes and may also conduct
workshops.

The gym offers memberships, and every member has a Membership ID,
Start Date, End Date,

Type (e.g., Monthly, Yearly), and Status (Active, Inactive). Members can
book fitness classes

and personal training sessions. Each member has basic information such
as Name, Date of

Birth, Gender, Address, Phone Number, Email, and Emergency Contact.


Members can bring
guests to the gym, but each guest must be recorded in the system with
basic details (Name,

Contact Info, Relationship with Member).

The gym offers multiple membership plans (e.g., Silver, Gold, Platinum),
with varying benefits

such as (Access to facilities, Discounts, Bring Guests, rent lockers and


towels). The system

tracks when members check in and check out of the gym. Each check-in is
linked to a specific

facility or class. Guests also need to be checked in when accompanying a


member.

The gym offers a variety of fitness classes, each with a Class ID, Name,
Type (e.g., Yoga,

HIIT, Spinning), Schedule, and Max Capacity. Each class is led by an


instructor, and the system

tracks which members are enrolled in each class. Members can book
classes online or through

the gym app, and each booking has a status (Confirmed, Canceled,
Waitlisted).

Members can book personal training sessions with specific trainers. Each
session has a Session

ID, Date, Time, Duration, Trainer, and Status (Scheduled, Completed,


Canceled). Trainers

create workout plans for members during training sessions, which include
details like

Exercises, Sets, Reps, and Weight. Members can review their past workout
plans and track

their progress.

The gym provides health assessments where trainers evaluate a


member's body measurements

(e.g., Weight, BMI, Body Fat Percentage) and Fitness Goals. Health
assessments are done

periodically, and results are stored in the system. Members can set fitness
goals (e.g., Lose
Weight, Build Muscle, Improve Endurance), and the system tracks
progress against these goals.

The system manages payments for memberships, personal training


sessions, and other services

like equipment rentals. Each bill includes the Total Amount, Date, Payment
Method (Credit

Card, Debit, Cash, Direct Debit), and Status (Paid, Unpaid). Invoices are
generated for each payment, with a breakdown of the services. In case of
membership renewal, a new bill is

generated. The gym occasionally runs promotions and offers discounts


(e.g., 10% off on annual

membership, free class for referrals). Discount codes can be applied to


memberships or class

bookings, and the system tracks their usage

Q1. Draw the Entity Relationship Model.

Q2. Map the ERD Model of GMS in to fully normalized Relation


Model.

Q3. Draw the USE CASE for the GMS.

Q4. Create tables with DDL scripts and populate table’s data

Q5. Write executable SQL queries to generate desired output

1. Get a list of all fitness classes offered at the gym, along with
their schedules and the instructor names.

2. Display all members who have booked a yoga class, including


their booking status (Confirmed,

Canceled, etc.).

3. Calculate the total revenue generated from memberships,


personal training sessions, and class

bookings for a given month.

4. List the top 5 trainers who have conducted the most personal
training sessions.

5. List all members whose membership has expired but who have
attended the gym in the past 30
days.

6. Find the members who have the most active workout plans
with at least three different exercises

in their current routine

7. Calculate the total usage of discount codes and how much


revenue was lost due to discounts

applied in the last year.

8. Identify the progress of members in the last month at the gym,


including the number of fitness

classes they attended. The result should display the member's


name, the specific dates they attended,

and the total number of classes attended during that period

Q6. Trigger & Store Procedures

1. Create a trigger to automatically set the membership status to


"Inactive" when a member's

membership has expired (i.e., the current date exceeds the


membership's end date).

2. Create a trigger to automatically decrease the available spots


for a fitness class when a member

books a class and ensure the class capacity is not exceeded.

3. Create a trigger to automatically notify members when their


membership is about to expire (e.g., 7

days before the end date). (1 mark)

Q8. Gantt Chart (5 Marks)

You might also like