ADB
ADB
);
player_name VARCHAR(100),
birth_date DATE,
);
team_name VARCHAR(100),
team_location VARCHAR(100),
coach_name VARCHAR(100),
founded_year INT,
);
home_team_score INT,
away_team_score INT,
);
);
CREATE TABLE seasons (
);
competition_stage VARCHAR(100)
);
city VARCHAR(50),
country VARCHAR(50)
);
player_id INT,
injury_type VARCHAR(100),
injury_date DATE,
recovery_date DATE,
);
total_points INT,
total_assists INT,
total_rebounds INT,
);
position_name VARCHAR(50),
sport_id INT,
);
game_id INT,
player_id INT,
);
player_id INT,
from_team_id INT,
to_team_id INT,
transfer_date DATE,
);
DATAS INSERTED:
('Cricket'),
('Kabaddi'),
('Football'),
('Badminton'),
('Hockey');
('Chennai Super Kings', 'Chennai, Tamil Nadu', 'Stephen Fleming', 2008, 1),
('Kolkata Knight Riders', 'Kolkata, West Bengal', 'Chandrakant Pandit', 2008, 1),
('Chepauk Super Gillies', 'Chennai, Tamil Nadu', 'Hemanth Shukla', 2016, 1),
('ATK Mohun Bagan FC', 'Kolkata, West Bengal', 'Juan Ferrando', 2014, 3),
INSERT INTO players (player_name, birth_date, height, weight, team_id, position) VALUES
INSERT INTO players (player_name, birth_date, height, weight, team_id, position) VALUES
INSERT INTO players (player_name, birth_date, height, weight, team_id, position) VALUES
INSERT INTO players (player_name, birth_date, height, weight, team_id, position) VALUES
INSERT INTO game_stats (game_id, player_id, points, goals, runs, touchdowns, assists, rebounds, sacks,
yellow_cards, red_cards, wickets) VALUES
('Batsman', 1),
('Bowler', 1),
('All-rounder', 1),
('Wicketkeeper', 1),
('Captain', 1);
('Raider', 2),
('Defender', 2),
('All-rounder', 2),
('Captain', 2);
('Forward', 3),
('Midfielder', 3),
('Defender', 3),
('Goalkeeper', 3),
('Captain', 3);
('Center', 4),
('Captain', 4);
-- Game Events for IPL Players
INSERT INTO team_stats (game_id, team_id, total_points, total_assists, total_rebounds, total_goals) VALUES
INSERT INTO team_stats (game_id, team_id, total_points, total_assists, total_rebounds, total_goals) VALUES
INSERT INTO team_stats (game_id, team_id, total_points, total_assists, total_rebounds, total_goals) 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
(5, 5, 6, '2024-06-01', 150000), -- Suresh Kumar from Chepauk Super Gillies to Dindigul Dragons
(7, 6, 5, '2024-06-07', 120000); -- Ravindra Jadeja from Dindigul Dragons to Chepauk Super Gillies
(1, 1, 2, '2024-07-01', 2000000), -- Pardeep Narwal from Patna Pirates to Jaipur Pink Panthers
(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