0% found this document useful (0 votes)
9 views17 pages

ADB

The document outlines the creation of a sports database with multiple tables including sports, players, teams, games, and various statistics related to each. It includes SQL commands for creating these tables and inserting sample data for different sports leagues such as IPL, TNPL, Pro Kabaddi, and Indian Super League. The structure supports relationships between entities through foreign keys to maintain data integrity.
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)
9 views17 pages

ADB

The document outlines the creation of a sports database with multiple tables including sports, players, teams, games, and various statistics related to each. It includes SQL commands for creating these tables and inserting sample data for different sports leagues such as IPL, TNPL, Pro Kabaddi, and Indian Super League. The structure supports relationships between entities through foreign keys to maintain data integrity.
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/ 17

TABLE CREATION:

CREATE TABLE sports (

sport_id SERIAL PRIMARY KEY,

sport_name VARCHAR(50) -- e.g., Basketball, Football, Soccer

);

CREATE TABLE players (

player_id SERIAL PRIMARY KEY,

player_name VARCHAR(100),

birth_date DATE,

height DECIMAL(5,2), -- in meters

weight DECIMAL(5,2), -- in kilograms

team_id INT, -- Foreign key to teams table

position VARCHAR(50), -- e.g., Forward, Goalkeeper, Quarterback

FOREIGN KEY (team_id) REFERENCES teams(team_id) -- Links to the teams table

);

CREATE TABLE teams (

team_id SERIAL PRIMARY KEY,

team_name VARCHAR(100),

team_location VARCHAR(100),

coach_name VARCHAR(100),

founded_year INT,

sport_id INT, -- Foreign key to sports table

FOREIGN KEY (sport_id) REFERENCES sports(sport_id) -- Links to the sports table

);

CREATE TABLE games (

game_id SERIAL PRIMARY KEY,

home_team_id INT, -- Foreign key to teams table (Home team)

away_team_id INT, -- Foreign key to teams table (Away team)


game_date DATE,

home_team_score INT,

away_team_score INT,

game_type VARCHAR(50), -- e.g., Regular, Playoff, Exhibition

location_id INT, -- Foreign key to locations table

season_id INT, -- Foreign key to seasons table

competition_id INT, -- Foreign key to competitions table

sport_id INT, -- Foreign key to sports table

FOREIGN KEY (home_team_id) REFERENCES teams(team_id),

FOREIGN KEY (away_team_id) REFERENCES teams(team_id),

FOREIGN KEY (location_id) REFERENCES locations(location_id),

FOREIGN KEY (season_id) REFERENCES seasons(season_id),

FOREIGN KEY (competition_id) REFERENCES competitions(competition_id),

FOREIGN KEY (sport_id) REFERENCES sports(sport_id)

);

CREATE TABLE game_stats (

stat_id SERIAL PRIMARY KEY,

game_id INT, -- Foreign key to games table

player_id INT, -- Foreign key to players table

points INT, -- Specific metric for basketball

goals INT, -- Specific metric for soccer

runs INT, -- Specific metric for cricket/baseball

touchdowns INT, -- Specific metric for American football

assists INT, -- Specific metric for basketball, soccer

rebounds INT, -- Specific metric for basketball

sacks INT, -- Specific metric for American football

yellow_cards INT, -- Specific metric for soccer

red_cards INT, -- Specific metric for soccer

wickets INT, -- Specific metric for cricket

FOREIGN KEY (game_id) REFERENCES games(game_id),

FOREIGN KEY (player_id) REFERENCES players(player_id)

);
CREATE TABLE seasons (

season_id SERIAL PRIMARY KEY,

season_name VARCHAR(50) -- e.g., '2024/2025 NBA Season'

);

CREATE TABLE competitions (

competition_id SERIAL PRIMARY KEY,

competition_name VARCHAR(100), -- e.g., 'NBA', 'FIFA World Cup', 'Super Bowl'

competition_stage VARCHAR(100)

);

CREATE TABLE locations (

location_id SERIAL PRIMARY KEY,

location_name VARCHAR(100), -- e.g., 'Crypto.com Arena', 'Wembley Stadium'

city VARCHAR(50),

country VARCHAR(50)

);

CREATE TABLE player_injuries (

injury_id SERIAL PRIMARY KEY,

player_id INT,

injury_type VARCHAR(100),

injury_date DATE,

recovery_date DATE,

FOREIGN KEY (player_id) REFERENCES players(player_id)

);

CREATE TABLE team_stats (

stat_id SERIAL PRIMARY KEY,

game_id INT, -- Foreign key to games table


team_id INT, -- Foreign key to teams table

total_points INT,

total_assists INT,

total_rebounds INT,

total_goals INT, -- for soccer

FOREIGN KEY (game_id) REFERENCES games(game_id),

FOREIGN KEY (team_id) REFERENCES teams(team_id)

);

CREATE TABLE positions (

position_id SERIAL PRIMARY KEY,

position_name VARCHAR(50),

sport_id INT,

FOREIGN KEY (sport_id) REFERENCES sports(sport_id)

);

CREATE TABLE game_events (

event_id SERIAL PRIMARY KEY,

game_id INT,

player_id INT,

event_type VARCHAR(50), -- e.g., 'goal', 'assist', 'foul'

event_time TIME, -- time at which the event occurred

FOREIGN KEY (game_id) REFERENCES games(game_id),

FOREIGN KEY (player_id) REFERENCES players(player_id)

);

CREATE TABLE player_transfers (

transfer_id SERIAL PRIMARY KEY,

player_id INT,

from_team_id INT,

to_team_id INT,

transfer_date DATE,

transfer_fee DECIMAL(10, 2),


FOREIGN KEY (player_id) REFERENCES players(player_id),

FOREIGN KEY (from_team_id) REFERENCES teams(team_id),

FOREIGN KEY (to_team_id) REFERENCES teams(team_id)

);
DATAS INSERTED:

INSERT INTO sports (sport_name) VALUES

('Cricket'),

('Kabaddi'),

('Football'),

('Badminton'),

('Hockey');

-- Teams for IPL (Indian Premier League)

INSERT INTO teams (team_name, team_location, coach_name, founded_year, sport_id) VALUES

('Mumbai Indians', 'Mumbai, Maharashtra', 'Mahela Jayawardene', 2008, 1),

('Chennai Super Kings', 'Chennai, Tamil Nadu', 'Stephen Fleming', 2008, 1),

('Kolkata Knight Riders', 'Kolkata, West Bengal', 'Chandrakant Pandit', 2008, 1),

('Delhi Capitals', 'Delhi', 'Ricky Ponting', 2008, 1),

('Royal Challengers Bangalore', 'Bangalore, Karnataka', 'Mike Hesson', 2008, 1),

('Punjab Kings', 'Mohali, Punjab', 'Trevor Bayliss', 2008, 1),

('Rajasthan Royals', 'Jaipur, Rajasthan', 'Kumar Sangakkara', 2008, 1),

('Sunrisers Hyderabad', 'Hyderabad, Telangana', 'Brian Lara', 2013, 1);

-- Teams for TNPL (Tamil Nadu Premier League)

INSERT INTO teams (team_name, team_location, coach_name, founded_year, sport_id) VALUES

('Chepauk Super Gillies', 'Chennai, Tamil Nadu', 'Hemanth Shukla', 2016, 1),

('Madurai Panthers', 'Madurai, Tamil Nadu', 'Ravichandran Ashwin', 2016, 1),

('Dindigul Dragons', 'Dindigul, Tamil Nadu', 'V. R. V. Singh', 2016, 1),

('TUTI Patriots', 'Tirunelveli, Tamil Nadu', 'S. Sreesanth', 2016, 1),

('Kanchipuram Cobras', 'Kanchipuram, Tamil Nadu', 'Vikram Solanki', 2016, 1),

('Trichy Warriors', 'Tiruchirapalli, Tamil Nadu', 'Vishnu Solanki', 2016, 1),

('Tirunelveli Warriors', 'Tirunelveli, Tamil Nadu', 'Shanivela Prasad', 2016, 1),

('Salem Spartans', 'Salem, Tamil Nadu', 'T. S. S. Rajendran', 2016, 1);

-- Teams for Kabaddi (Pro Kabaddi League)


INSERT INTO teams (team_name, team_location, coach_name, founded_year, sport_id) VALUES

('Bengal Warriors', 'Kolkata, West Bengal', 'Bharat Upadhyay', 2014, 2),

('U Mumba', 'Mumbai, Maharashtra', 'Ravinder Singh Kadian', 2014, 2),

('Patna Pirates', 'Patna, Bihar', 'Ram Mehar Singh', 2014, 2),

('Jaipur Pink Panthers', 'Jaipur, Rajasthan', 'Kasinath K', 2014, 2),

('Dabang Delhi K.C.', 'Delhi', 'Krishan Kumar Hooda', 2014, 2),

('Bengaluru Bulls', 'Bangalore, Karnataka', 'Ashok Shinde', 2014, 2),

('Tamil Thalaivas', 'Chennai, Tamil Nadu', 'P. R. Sreejith', 2014, 2),

('Gujarat Giants', 'Ahmedabad, Gujarat', 'Manpreet Singh', 2014, 2);

-- Teams for Football (Indian Super League)

INSERT INTO teams (team_name, team_location, coach_name, founded_year, sport_id) VALUES

('Mumbai City FC', 'Mumbai, Maharashtra', 'Des Buckingham', 2014, 3),

('ATK Mohun Bagan FC', 'Kolkata, West Bengal', 'Juan Ferrando', 2014, 3),

('Chennaiyin FC', 'Chennai, Tamil Nadu', 'Thomas Brdaric', 2014, 3),

('Kerala Blasters FC', 'Kochi, Kerala', 'Ivan Vukomanovic', 2014, 3),

('Bengaluru FC', 'Bengaluru, Karnataka', 'Simon Grayson', 2014, 3),

('Hyderabad FC', 'Hyderabad, Telangana', 'Manolo Márquez', 2019, 3),

('Odisha FC', 'Bhubaneswar, Odisha', 'Ravi Kumar', 2014, 3),

('FC Goa', 'Goa', 'Carlos Pena', 2014, 3);

-- Players for IPL

INSERT INTO players (player_name, birth_date, height, weight, team_id, position) VALUES

('Rohit Sharma', '1987-04-30', 1.73, 72.5, 1, 'Batsman'),

('MS Dhoni', '1981-07-07', 1.75, 79.5, 2, 'Wicketkeeper-Batsman'),

('Virat Kohli', '1988-11-05', 1.75, 72.0, 5, 'Batsman'),

('KL Rahul', '1992-04-18', 1.78, 70.0, 3, 'Batsman'),

('Shane Watson', '1981-06-17', 1.88, 85.0, 6, 'All-rounder'),

('David Warner', '1986-10-27', 1.70, 65.0, 7, 'Batsman'),

('Ben Stokes', '1991-06-04', 1.93, 88.0, 4, 'All-rounder');

-- Players for TNPL

INSERT INTO players (player_name, birth_date, height, weight, team_id, position) VALUES

('R Ashwin', '1986-09-17', 1.83, 75.0, 1, 'Bowler'),


('Dinesh Karthik', '1985-06-01', 1.73, 69.5, 2, 'Wicketkeeper-Batsman'),

('Murali Vijay', '1984-04-01', 1.78, 75.5, 3, 'Batsman'),

('Vijay Shankar', '1991-01-26', 1.85, 77.0, 4, 'All-rounder'),

('Suresh Kumar', '1992-12-11', 1.70, 68.5, 5, 'Batsman'),

('P. M. Ankit', '1995-02-09', 1.80, 80.0, 6, 'Bowler'),

('Ravindra Jadeja', '1988-12-06', 1.74, 75.0, 7, 'All-rounder');

-- Players for Pro Kabaddi

INSERT INTO players (player_name, birth_date, height, weight, team_id, position) VALUES

('Pardeep Narwal', '1997-02-16', 1.75, 78.0, 1, 'Raider'),

('Ajay Thakur', '1990-05-01', 1.77, 82.0, 2, 'Raider'),

('Manjeet Chhillar', '1989-02-15', 1.79, 86.0, 3, 'All-rounder'),

('Deepak Niwas Hooda', '1994-05-10', 1.80, 83.0, 4, 'All-rounder'),

('Rahul Chaudhari', '1993-06-16', 1.76, 72.0, 5, 'Raider'),

('Nitin Tomar', '1996-05-05', 1.78, 80.0, 6, 'Raider'),

('Rishank Devadiga', '1991-02-11', 1.77, 82.0, 7, 'Raider');

-- Players for Indian Football (ISL)

INSERT INTO players (player_name, birth_date, height, weight, team_id, position) VALUES

('Hugo Boumous', '1996-01-20', 1.76, 70.0, 1, 'Midfielder'),

('Roy Krishna', '1987-08-30', 1.74, 69.0, 2, 'Forward'),

('Bartholomew Ogbeche', '1984-10-01', 1.81, 84.0, 3, 'Forward'),

('Iain Hume', '1987-01-30', 1.70, 71.0, 4, 'Forward'),

('Sahal Abdul Samad', '1997-08-01', 1.76, 68.0, 5, 'Midfielder'),

('Mourtada Fall', '1986-12-06', 1.91, 85.0, 6, 'Defender'),

('Rafael Crivellaro', '1989-12-18', 1.73, 72.0, 7, 'Midfielder');

-- Games for IPL (Indian Premier League)

INSERT INTO games (game_id, home_team_id, away_team_id, game_date, home_team_score, away_team_score,


game_type, location_id, season_id, competition_id, sport_id) VALUES

(1, 1, 2, '2024-05-10', 180, 175, 'Regular', 1, 1, 1, 1),

(2, 3, 4, '2024-05-12', 190, 185, 'Regular', 2, 1, 1, 1),

(3, 5, 6, '2024-05-14', 200, 195, 'Regular', 3, 1, 1, 1),

(4, 7, 8, '2024-05-16', 170, 160, 'Regular', 4, 1, 1, 1);


-- Games for TNPL (Tamil Nadu Premier League)

INSERT INTO games (game_id, home_team_id, away_team_id, game_date, home_team_score, away_team_score,


game_type, location_id, season_id, competition_id, sport_id) VALUES

(5, 1, 2, '2024-06-05', 165, 160, 'Regular', 5, 1, 2, 1),

(6, 3, 4, '2024-06-07', 150, 145, 'Regular', 6, 1, 2, 1),

(7, 5, 6, '2024-06-09', 180, 170, 'Regular', 7, 1, 2, 1),

(8, 7, 8, '2024-06-11', 155, 150, 'Regular', 8, 1, 2, 1);

-- Games for Kabaddi (Pro Kabaddi League)

INSERT INTO games (game_id, home_team_id, away_team_id, game_date, home_team_score, away_team_score,


game_type, location_id, season_id, competition_id, sport_id) VALUES

(9, 1, 2, '2024-08-01', 34, 29, 'Playoff', 9, 1, 3, 2),

(10, 3, 4, '2024-08-03', 28, 27, 'Playoff', 10, 1, 3, 2),

(11, 5, 6, '2024-08-05', 25, 24, 'Playoff', 11, 1, 3, 2),

(12, 7, 8, '2024-08-07', 36, 32, 'Playoff', 12, 1, 3, 2);

-- Games for Indian Football (ISL)

INSERT INTO games (game_id, home_team_id, away_team_id, game_date, home_team_score, away_team_score,


game_type, location_id, season_id, competition_id, sport_id) VALUES

(13, 1, 2, '2024-11-25', 2, 1, 'Regular', 13, 1, 4, 3),

(14, 3, 4, '2024-11-26', 3, 2, 'Regular', 14, 1, 4, 3),

(15, 5, 6, '2024-11-27', 1, 1, 'Regular', 15, 1, 4, 3),

(16, 7, 1, '2024-11-28', 1, 3, 'Regular', 16, 1, 4, 3);

-- Game Stats for IPL Players

INSERT INTO game_stats (game_id, player_id, points, goals, runs, touchdowns, assists, rebounds, sacks,
yellow_cards, red_cards, wickets) VALUES

(1, 1, 40, 0, 0, 0, 3, 0, 0, 0, 0, 0), -- Rohit Sharma

(2, 2, 30, 0, 0, 0, 2, 0, 0, 0, 0, 0), -- MS Dhoni

(3, 3, 50, 0, 0, 0, 5, 0, 0, 0, 0, 0), -- Virat Kohli

(4, 4, 35, 0, 0, 0, 4, 0, 0, 0, 0, 0), -- KL Rahul


-- Game Stats for TNPL Players

(5, 5, 35, 0, 0, 0, 2, 0, 0, 0, 0, 0), -- Suresh Kumar

(6, 6, 25, 0, 0, 0, 3, 0, 0, 0, 0, 0), -- P. M. Ankit

(7, 7, 20, 0, 0, 0, 1, 0, 0, 0, 0, 0), -- Ravindra Jadeja

-- Game Stats for Kabaddi Players

(8, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0), -- Pardeep Narwal

(9, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0), -- Ajay Thakur

(10, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0), -- Manjeet Chhillar

-- Game Stats for ISL Players

(11, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0), -- Hugo Boumous

(12, 2, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0), -- Roy Krishna

(13, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0); -- Bartholomew Ogbeche

-- Locations for IPL

INSERT INTO locations (location_name, city, country) VALUES

('Wankhede Stadium', 'Mumbai', 'India'),

('Eden Gardens', 'Kolkata', 'India'),

('M. Chinnaswamy Stadium', 'Bengaluru', 'India'),

('Rajiv Gandhi International Cricket Stadium', 'Hyderabad', 'India'),

('MA Chidambaram Stadium', 'Chennai', 'India');

-- Locations for TNPL

INSERT INTO locations (location_name, city, country) VALUES

('Indian Cement Company Ground', 'Tirunelveli', 'India'),

('NPR College Ground', 'Dindigul', 'India'),

('Nehru Stadium', 'Coimbatore', 'India'),

('M. A. Chidambaram Stadium', 'Chennai', 'India');

-- Locations for Kabaddi

INSERT INTO locations (location_name, city, country) VALUES

('Shree Shiv Chhatrapati Sports Complex', 'Pune', 'India'),

('Indira Gandhi Indoor Stadium', 'Delhi', 'India'),


('Gachibowli Indoor Stadium', 'Hyderabad', 'India'),

('Mahatma Gandhi Indoor Stadium', 'Mumbai', 'India');

-- Locations for ISL

INSERT INTO locations (location_name, city, country) VALUES

('Jawaharlal Nehru Stadium', 'Kochi', 'India'),

('Salt Lake Stadium', 'Kolkata', 'India'),

('Fatorda Stadium', 'Goa', 'India'),

('Sree Kanteerava Stadium', 'Bengaluru', 'India');

-- Seasons for IPL

INSERT INTO seasons (season_name) VALUES

('2024 IPL Season'),

('2023 IPL Season'),

('2022 IPL Season');

-- Seasons for TNPL

INSERT INTO seasons (season_name) VALUES

('2024 TNPL Season'),

('2023 TNPL Season'),

('2022 TNPL Season');

-- Seasons for Kabaddi

INSERT INTO seasons (season_name) VALUES

('2024 Pro Kabaddi Season'),

('2023 Pro Kabaddi Season'),

('2022 Pro Kabaddi Season');

-- Seasons for ISL

INSERT INTO seasons (season_name) VALUES

('2024-25 ISL Season'),


('2023-24 ISL Season'),

('2022-23 ISL Season');

-- Competitions for IPL

INSERT INTO competitions (competition_name, competition_stage) VALUES

('Indian Premier League', 'Group Stage'),

('Indian Premier League', 'Finals'),

('Indian Premier League', 'Playoffs');

-- Competitions for TNPL

INSERT INTO competitions (competition_name, competition_stage) VALUES

('Tamil Nadu Premier League', 'Group Stage'),

('Tamil Nadu Premier League', 'Finals'),

('Tamil Nadu Premier League', 'Knockouts');

-- Competitions for Kabaddi

INSERT INTO competitions (competition_name, competition_stage) VALUES

('Pro Kabaddi League', 'League Stage'),

('Pro Kabaddi League', 'Finals'),

('Pro Kabaddi League', 'Playoffs');

-- Competitions for ISL

INSERT INTO competitions (competition_name, competition_stage) VALUES

('Indian Super League', 'League Stage'),

('Indian Super League', 'Finals'),

('Indian Super League', 'Playoffs');

-- Positions for Cricket (IPL, TNPL)

INSERT INTO positions (position_name, sport_id) VALUES

('Batsman', 1),
('Bowler', 1),

('All-rounder', 1),

('Wicketkeeper', 1),

('Captain', 1);

-- Positions for Kabaddi (Pro Kabaddi League)

INSERT INTO positions (position_name, sport_id) VALUES

('Raider', 2),

('Defender', 2),

('All-rounder', 2),

('Captain', 2);

-- Positions for Football (ISL)

INSERT INTO positions (position_name, sport_id) VALUES

('Forward', 3),

('Midfielder', 3),

('Defender', 3),

('Goalkeeper', 3),

('Captain', 3);

-- Positions for Basketball

INSERT INTO positions (position_name, sport_id) VALUES

('Point Guard', 4),

('Shooting Guard', 4),

('Small Forward', 4),

('Power Forward', 4),

('Center', 4),

('Captain', 4);
-- Game Events for IPL Players

INSERT INTO game_events (game_id, player_id, event_type, event_time) VALUES

(1, 1, 'Six', '00:15:30'), -- Rohit Sharma hits a six

(2, 2, 'Wicket', '00:10:15'), -- MS Dhoni takes a wicket

(3, 3, 'Assist', '00:12:45'), -- Virat Kohli assists

(4, 4, 'Run', '00:18:20'); -- KL Rahul runs

-- Game Events for TNPL Players

INSERT INTO game_events (game_id, player_id, event_type, event_time) VALUES

(5, 5, 'Six', '00:30:00'), -- Suresh Kumar hits a six

(6, 6, 'Wicket', '00:20:10'), -- P. M. Ankit takes a wicket

(7, 7, 'Catch', '00:22:05'); -- Ravindra Jadeja takes a catch

-- Game Events for Kabaddi Players

INSERT INTO game_events (game_id, player_id, event_type, event_time) VALUES

(8, 1, 'Raid', '00:12:30'), -- Pardeep Narwal performs a raid

(9, 2, 'Tackle', '00:10:15'), -- Ajay Thakur makes a tackle

(10, 3, 'Raid', '00:14:20'); -- Manjeet Chhillar performs a raid

-- Game Events for ISL Players

INSERT INTO game_events (game_id, player_id, event_type, event_time) VALUES

(11, 1, 'Goal', '00:22:30'), -- Hugo Boumous scores a goal

(12, 2, 'Assist', '00:25:15'), -- Roy Krishna assists

(13, 3, 'Yellow Card', '00:27:00'); -- Bartholomew Ogbeche gets a yellow card

-- Team Stats for IPL

INSERT INTO team_stats (game_id, team_id, total_points, total_assists, total_rebounds, total_goals) VALUES

(1, 1, 180, 10, 5, 0), -- Mumbai Indians

(2, 2, 175, 12, 6, 0), -- Chennai Super Kings

(3, 3, 190, 8, 4, 0), -- Kolkata Knight Riders

(4, 4, 185, 15, 7, 0); -- Royal Challengers Bangalore

-- Team Stats for TNPL


INSERT INTO team_stats (game_id, team_id, total_points, total_assists, total_rebounds, total_goals) VALUES

(5, 5, 165, 9, 4, 0), -- Chepauk Super Gillies

(6, 6, 160, 7, 3, 0), -- Dindigul Dragons

(7, 7, 180, 10, 5, 0), -- Madurai Panthers

(8, 8, 170, 8, 4, 0); -- Tuti Patriots

-- Team Stats for Kabaddi

INSERT INTO team_stats (game_id, team_id, total_points, total_assists, total_rebounds, total_goals) VALUES

(9, 1, 34, 3, 0, 0), -- Patna Pirates

(10, 2, 29, 2, 1, 0), -- Jaipur Pink Panthers

(11, 3, 28, 4, 0, 0), -- Bengaluru Bulls

(12, 4, 27, 5, 1, 0); -- U Mumba

-- Team Stats for ISL

INSERT INTO team_stats (game_id, team_id, total_points, total_assists, total_rebounds, total_goals) VALUES

(13, 1, 2, 1, 0, 2), -- Mumbai City FC

(14, 2, 3, 2, 0, 1), -- ATK Mohun Bagan

(15, 3, 1, 1, 0, 1), -- Kerala Blasters

(16, 4, 3, 1, 0, 3); -- FC Goa

-- Player Transfers for IPL

INSERT INTO player_transfers (player_id, from_team_id, to_team_id, transfer_date, transfer_fee) VALUES

(1, 1, 2, '2024-04-01', 5000000), -- Rohit Sharma from Mumbai Indians to Chennai Super Kings

(2, 3, 4, '2024-04-03', 3000000), -- MS Dhoni from Kolkata Knight Riders to Royal Challengers Bangalore

(3, 5, 6, '2024-04-10', 2500000), -- Virat Kohli from Rajasthan Royals to Sunrisers Hyderabad

(4, 7, 8, '2024-04-12', 4000000); -- KL Rahul from Delhi Capitals to Royal Challengers Bangalore

-- Player Transfers for TNPL

INSERT INTO player_transfers (player_id, from_team_id, to_team_id, transfer_date, transfer_fee) VALUES

(5, 5, 6, '2024-06-01', 150000), -- Suresh Kumar from Chepauk Super Gillies to Dindigul Dragons

(6, 7, 8, '2024-06-05', 100000), -- P. M. Ankit from Madurai Panthers to Tuti Patriots

(7, 6, 5, '2024-06-07', 120000); -- Ravindra Jadeja from Dindigul Dragons to Chepauk Super Gillies

-- Player Transfers for Kabaddi


INSERT INTO player_transfers (player_id, from_team_id, to_team_id, transfer_date, transfer_fee) VALUES

(1, 1, 2, '2024-07-01', 2000000), -- Pardeep Narwal from Patna Pirates to Jaipur Pink Panthers

(2, 3, 4, '2024-07-03', 1500000), -- Ajay Thakur from Bengaluru Bulls to U Mumba

(3, 4, 1, '2024-07-05', 1800000); -- Manjeet Chhillar from U Mumba to Patna Pirates

-- Player Transfers for ISL

INSERT INTO player_transfers (player_id, from_team_id, to_team_id, transfer_date, transfer_fee) VALUES

(1, 1, 2, '2024-10-10', 4000000), -- Hugo Boumous from Mumbai City FC to ATK Mohun Bagan

(2, 2, 3, '2024-10-15', 3500000), -- Roy Krishna from ATK Mohun Bagan to Kerala Blasters

(3, 3, 4, '2024-10-20', 5000000); -- Bartholomew Ogbeche from Kerala Blasters to FC Goa

-- Player Injuries for IPL Players

INSERT INTO player_injuries (player_id, injury_type, injury_date, recovery_date) VALUES

(1, 'Hamstring', '2024-04-15', '2024-04-30'), -- Rohit Sharma

(2, 'Ankle Sprain', '2024-04-18', '2024-05-02'), -- MS Dhoni

(3, 'Back Strain', '2024-04-20', '2024-05-05'), -- Virat Kohli

(4, 'Shoulder Injury', '2024-04-25', '2024-05-10'); -- KL Rahul

-- Player Injuries for TNPL Players

INSERT INTO player_injuries (player_id, injury_type, injury_date, recovery_date) VALUES

(5, 'Knee Ligament', '2024-06-02', '2024-06-20'), -- Suresh Kumar

(6, 'Wrist Fracture', '2024-06-04', '2024-06-15'), -- P. M. Ankit

(7, 'Elbow Sprain', '2024-06-06', '2024-06-18'); -- Ravindra Jadeja

-- Player Injuries for Kabaddi Players

INSERT INTO player_injuries (player_id, injury_type, injury_date, recovery_date) VALUES

(1, 'Knee Injury', '2024-07-10', '2024-07-25'), -- Pardeep Narwal

(2, 'Shoulder Injury', '2024-07-12', '2024-07-26'), -- Ajay Thakur

(3, 'Back Strain', '2024-07-15', '2024-07-30'); -- Manjeet Chhillar

-- Player Injuries for ISL Players

INSERT INTO player_injuries (player_id, injury_type, injury_date, recovery_date) VALUES

(1, 'Muscle Tear', '2024-11-05', '2024-11-20'), -- Hugo Boumous

(2, 'Ankle Injury', '2024-11-08', '2024-11-22'), -- Roy Krishna


(3, 'Hamstring', '2024-11-10', '2024-11-25'); -- Bartholomew Ogbeche

You might also like