选手表:
player_ID
player_name
position_id
职位表:
position_ID
position_description
团队表:
TEAM_ID
TEAM_NAME
游戏桌:
Game_id
home_team_id
guest_team_id
score
location
date
统计表
game_id
player_id
number of fouls
number of rebounds
我尝试了以下查询来查找玩家可以在他们身上打的各种位置:
select player.player_name,position.position_name
from player,position
where player.fname='John' and position_name='Guard,Midfield,Striker'
我尝试了以下查询来列出例如 5 次犯规的比赛日期和地点,我尝试了这个查询:
select game.date,location,number of fouls,
from game,stats
where game.date=game.id
and game.location=game.id
and number of fouls > 5
group by game.date,game.location