Ip Project 1
Ip Project 1
Submitted By : Submitted To :
Mukesh Bhatt
Gaurav Shah
.
ACKNOWLEDGEMENT
I would like to take this opportunity to express my gratitude to those who have
been of great assistance in finishing this project in due course of the stipulated
deadline. To begin with, I would like to thank Principal ma'am, Mr. Rajesh
Kumar Sharma for her encouragement and for providing me with all the
required facilities for completing my project.
Submitted by :
Lakshya Rawat
CERTIFICATE
This project was submitted for evaluation as part of the final academic
assessment and reflects the student’s hard work, creativity, and analytical
skills.
The Sports Management System project deals with registering new members,
plans, payments, routine and managing the members for the. The project has
complete access for the crud operations that are to create, read, update, and
delete the database entries. At first you need to login as this system is totally
controlled by the admin/owner and then register the members for the and check
their health status and view the total income per month. Now you can assign
different routine to different members and check the health status which can
be viewed and edited too and finally check the payments according to the plan
they have chosen.
The Sports Management software is very user friendly and appealing. The
Human objective of the system is to maintain and retrieve information about
the members and the sports they will play on which day of the week and at what
time in the sports. The system is simple in design and implementation. The
main objectives of this system can be summarized as follows:
Design of a GUI portal for managing the Sports for the main admin/owner.
Insertion of member's data plans and managing of payment and health status.
Monthly Payment for monthly plan and yearly payment of yearly plan.
i) ADMIN MODULE
In this module admin check after all details about sports players and the player
list.
PLAN MODULE
In this module, various sports plans are installed and showed in for players to
enrol.
2. SYSTEM ANALYSIS
1. Existing system
2. Proposed system
Here the existing system is nothing but a manual system in which the admin
must fill the member's Sports Club details in an excel sheet and send it to their
supervisor, then the supervisor must merge all the member information details
and arrange them in to a single sheet. Maintaining a clean record of all the
members is a tedious job in this process.
DISADVANTAGES
One way to overcome all these difficulties is so store all the information in
database. The computerization helps mitigate a lot of drawbacks and
streamlines the process.
Different areas of the Sports Club can be managed in different tabs by different
people.
ADVANTAGES
Faster processing
Processor
Operating Systems
Windows 2000/XP/Vista.
MySQL 8.0
The primary aims of the Sports Management System project are to:
Centralize Sports Data: Organize all sports-related information (player data, teams,
schedules, results) into one system for easy management and access.
Monitor Player Performance: Track statistics, performance, and health data, helping
coaches make informed decisions.
Manage Event Results: Maintain records of match and tournament results, which can
be easily accessed for performance analysis.
Below is the SQL code to create the required tables for the Sports Management System.
The system includes tables for Player, Team, Event, Attendance, and Result.
Player Table
last_name VARCHAR(50),
age INT,
sport VARCHAR(30),
team_id INT,
contact_number VARCHAR(15),
email VARCHAR(50),
health_data TEXT );
Team Table
sport VARCHAR(30),
coach_name VARCHAR(50),
age_group VARCHAR(10 );
Event Table
event_date DATE,
location VARCHAR(50),
team_id INT,
Attendance Table
player_id INT,
event_id INT,
attendance_date DATE,
);
Result Table
event_id INT,
team_id INT,
score INT,
position VARCHAR(10),
);
VALUES
VALUES
VALUES
VALUES
Expected Output
Players Details
The Player table holds data on each player, including their name, age, team, and
health information. Retrieving data from this table provides an overview of players
registered in the system.
Query Example:
Expected Output:
+-----------+------------+-----------+-----+------------+---------+----------------+-------------
--------+---------------+
+-----------+------------+-----------+-----+------------+---------+----------------+-------------
--------+---------------+
+-----------+------------+-----------+-----+------------+---------+----------------+-------------
--------+---------------+
2.Team Information:
Query Example:
Expected Output:
+---------+-----------+------------+------------+-----------+
+---------+-----------+------------+------------+-----------+
+---------+-----------+------------+------------+-----------+
This query provides the attendance status of players for a particular event.
Query Example:
FROM Attendance
WHERE Attendance.event_id = 1;
Expected Output:
+------------+-----------+---------+
+------------+-----------+---------+
4 .Event Results:
Query Example:
FROM Result
Expected Output:
+----------------------------+-----------+-------+----------+
+----------------------------+-----------+-------+----------+
);
2. Players Table
age INT,
team_id INT,
position VARCHAR(50),
);
3. Matches Table
team1_id INT,
team2_id INT,
match_date DATE,
location VARCHAR(100),
4. Scores Table
Stores scores for each match, linked to the Matches table by match ID.
match_id INT,
team_id INT,
points INT,
-- Insert Teams
-- Insert Players
-- Insert Matches
-- Insert Scores
(2, 1, 2, 2);
Example Queries with Output
Expected Output:
FROM Players
Expected Output:
FROM Matches
JOIN Teams T1 ON Matches.team1_id = T1.team_id
Expected Output:
FROM Players
team_name player_name
Eagles Alex Johnson
Eagles Chris Lee
FROM Scores
GROUP BY Teams.team_name;
A simple sports management system in SQL could include tables for managing teams,
players, matches, and scores. This setup will allow for the insertion, retrieval, and
updating of records for sports events and player statistics. Below, I’ve provided sample
SQL code with tables, example queries, and expected outputs.
Database Structure
1. Teams Table
2. Players Table
3. Matches Table
4. Scores Table
Stores scores for each match, linked to the Matches table by match ID.
Expected Output:
Expected Output:
team_name player_name
Eagles Alex Johnson
Eagles Chris Lee
5. Calculate Total Points for Each Team in All Matches
SELECT Teams.team_name, SUM(Scores.points) AS
total_points FROM Scores JOIN Teams ON Scores.team_id =
Teams.team_id GROUP BY Teams.team_name;
Expected Output:
team_name total_points
Eagles 3
Sharks 2
name VARCHAR(50),
age INT,
sport VARCHAR(50)
);
team_name VARCHAR(50)
);
athlete_id INT,
);
team1_id INT,
team2_id INT,
score_team1 INT,
score_team2 INT,
);
INSERT INTO Athletes (athlete_id, name, age, sport) VALUES (2, 'Bob', 25,
'Soccer');
INSERT INTO Athletes (athlete_id, name, age, sport) VALUES (3, 'Charlie',
21, 'Soccer');
INSERT INTO Athletes (athlete_id, name, age, sport) VALUES (4, 'David', 22,
'Soccer');
3. Retrieve Data
Now that the data is inserted, you can query it.
FROM Teams t
ORDER BY t.team_name;
Expected Output:
——————————————————-
——————————————————-
ELSE 'Draw'
END AS winner
FROM Games g
Expected Output:
———————————————————————————-
———————————————————————————-
coach_name VARCHAR(50),
home_city VARCHAR(50)
);
age INT,
position VARCHAR(20),
team_id INT,
);
team1_id INT,
team2_id INT,
match_date DATE,
location VARCHAR(50),
);
-- Creating the Scores table
match_id INT,
team_id INT,
score INT,
);
-- Insert teams
-- Insert players
-- Insert matches
-- Insert scores
(1, 1, 1, 3),
(2, 1, 2, 2);
Output:
——————————————————————
——————————————————————
FROM Players
Output:
————————————
player_name | team_name
————————————-
FROM Matches
S
Output:
————————————————
————————————————
1 | Tigers | Lions |3
1 | Tigers | Lions |2