Vous êtes sur la page 1sur 12

Gym Membership Management

CHAPTER 1

INTRODUCTION

Gym Membership Management is a project that helps to keep track of gym clients and

employees based on their details. This project is designed to help the manager/owner

to carry out operations in a smooth and error free manner.

The “Gym Membership Management” project has been developed to override the

complications with the existing manual system. It is a complete gym facility program

which looks after all the members, memberships and activities. It is designed for gym

and health clubs. It eliminates the errors that might occur when the records are

maintained manually and allows you to manage your workforce anytime.

The project uses a MySQL database to store all the related information such as the

clients’ personal details, plan, membership, fitness and class details etc. An intelligent

and simple to-utilize front end, created utilizing HTML, guarantees an easy to

understand and bother free involvement.

The project also provides total information about machinery/equipment’s and data of

trainers and other employees.

The “Gym Membership Management” project is intended to help the association in

vital arranging and guarantees that the organization is outfitted with precise and

sufficient measure of information to do the procedure of seat allotment.

1
Gym Membership Management
CHAPTER 2

PROBLEM STATEMENT

2.1 OBJECTIVES OF THE PROJECT

The main objective of the project “Gym Membership Management” is to manage

details of all the employees, members, memberships and classes offered. Through the

HTML front end PHP code is used to display the output for queries. Other objectives:

 To develop easy-to-use software which handles the customer-staff relationship

in an effective manner.

 To develop a user friendly system that requires minimal use-training.

2.2 DATABASE DESIGN

 Employee has empid, name, contact, DoJ, salary, address, deptid and sid.
 Member has memid, name, contact, classid and mid.
 Graduation has Grad_ID Grad_Name, Duration.
 Dept has deptid, dname and number.
 Membership has mid, name and validity.
 Class has classid, name, empid, cost and duration.
 Equipment has eqid, classid, name and date_of_purchase.
 Classno has slno, class id, hours_per_week and total_hours.
 Gym offers many classes.
 A member can sign up for many classes.
 A trainer takes only a particular class.
 A class can use a number of equipment.

2
Gym Membership Management
2.3 REQUIREMENT SPECIFICATION

2.3.1. Hardware Requirement

Processor - INTEL CORE PROCESSOR

Speed - 1.8 GHz

RAM - 1 GB

Hard Disk - 3 GB

2.3.2. Software Requirements

Operating System -WINDOWS 10

Programming Language - MySQL, PHP ,HTML

Server -XAMPP

Editor -Notepad ++

3
Gym Membership Management
CHAPTER 3

DATABASE DESIGN
3.1 BRIEF DESCRIPTION OF RELATIONAL MODEL

“The data and their relationships will be represented by a set of inter-related tables in a
relational model. Every table will consist of a column and a row where a column refers to
the attribute of an entity and a row refers to the records.”

3.2 ER DIAGRAM

An entity relationship diagram (ERD) demonstrates the connections between different


elements in the database. An entity is any real-world object with a physical or theoretical
presence. An ERD is an applied and authentic model of information used to speak to the
element structure framework.

4
Gym Membership Management

3.3 RELATIONAL SCHEMA

Relational schema is the structure of a database system, described in a formal language


supported by the database management system. It defines the tables, fields in each table
and the relationship between fields and tables.

5
Gym Membership Management
CHAPTER 4

IMPLEMENTATION

4.1 TABLE CREATION

 create table employee(trainerid varchar(10) primary key,name varchar(20),contact


bigint,address varchar(20),experience varchar(20),salary int,doj date,deptid
varchar(10),sid varchar(10),foreign key(deptid) references department(deptid) on
delete set null on update cascade,foreign key(sid) references trainer(trainerid) on
delete set null on update cascade);

 create table member(memid varchar(10) primary key,name varchar(20),mid


varchar(10),foreign key(mid) references membership(mid) on delete set null on
update cascade);
 insert into employee values('e103','elon',9297110380,'delhi','4 yrs',5000,'2000-02-
05','d20','e101');

4.2 QUERIES ON DDL COMMAND

 alter table member add column contact bigint;


 alter table employee change trainerid empid varchar(10);
 alter table class drop column classno;

4.3 QUERIES ON AGGREGATION FUNCTION

 select count(*) from employee;


 select max(10th_marks) from student;
 select min(doj) from employee where salary>20000;

6
Gym Membership Management

4.4 QUERIES ON JOINS

 select name from (member join on degree=deg_code) where dname=’Medicine’;


 select m.memid, m.name, c.hours_per_week from member m, classno c where
m.classid=c.classid and c.hours_per_week<14;

 select e.name, c.duration, c.name, d.dname from employee e, class c, department d


where e.classid=c.classid and c.trainerid=e.empid and e.deptid='d10';

4.5 NESTED AND CORRELATED QUERIES

 select Name from student where course_id in (select course_id from course where
course_code in(‘1001’,’1002’));
 select b_name from bank where bank_id in(select bank_id from student);
 select bank_name from bank where bank_id in(select bank_id from student);

4.6 VIEWS

 create view engg_studetn as select * from student where deg_code=1;

 create view v1 as select c.*,count(stud_id) from student s,college c where


c.college_id=s.college_id and deg_code=1 group by college_name order by
cut_off desc;

 create view med_colg as select * from college where deg_code=2;

4.7 TRIGGERS

 delimiter //
CREATE TRIGGER emp_d1
AFTER INSERT ON employee
FOR EACH ROW
begin
update department SET no_of_emp=no_of_emp+1

7
Gym Membership Management
where new.deptid=department.deptid;
end; //
delimiter ;

 delimiter //
CREATE TRIGGER emp_delete
AFTER DELETE ON employee
FOR EACH ROW
begin
update department SET no_of_emp=no_of_emp-1
where deptid=department.deptid;
end; //
delimiter ;

8
Gym Membership Management
CHAPTER 5

SAMPLE OUTPUT

5.1 Using MySQL

Query 1: select * from college;

Fig 5.1.1

Query 2: select * from v1 where cut_off>80;

Fig 5.1.2

Query 3: select course_name from course where course_id in (select course_id from
course_offered where college_id=(select college_id from college where
college_name=’NHCE’));

Fig 5.1.3

9
Gym Membership Management
5.2 Using HTML

Query 1: select * from course;

Fig 5.2.1

Fig 5.2.2
Query 2: delete from student where Name=’ddd’;

Fig 5.2.3
10
Gym Membership Management

CHAPTER 6

CONCLUSION

This project aims at reducing the burden on the examination body to maintain records

and allocate students manually. It is simple and easy to use, allowing the user to enter

his/her details, view details of various colleges and the courses they offer and see the

seat allotment on a user friendly and error free environment. User data is updated and

checked for authenticity using appropriate triggers. The project ensures that the

registered students are allocated into colleges as per their average score and the degrees

they wish to pursue and prevents any sort of anomaly or ambiguity, thus making it

highly efficient and competent.

BIBLIOGRAPHY

11
Gym Membership Management
 “www.scribd.com”
 “Fundamentals of Database Systems by Ramez Elmasri and Shamkant B
Navathe”
 “Database Management Systems 3rd Edition by Johannes Geharke and Raghu
Ramakrishnan”

12

Vous aimerez peut-être aussi