Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Fix the following SQLS to generate what each question is asking for. Part 2 : List the player for every goal scored in a game
Fix the following SQLS to generate what each question is asking for.
Part :
List the player for every goal scored in a game where the stadium was 'National Stadium, Warsaw'
Show what the answer should be
tableplayerRobert Lewandowski,Dimitris Salpingidis,Alan Dzagoev,Jakub Blaszczykowski,Giorgos Karagounis,Cristiano Ronaldo,Donbass ArenaOlimpiyskiy National Sports CoDonbass ArenaNational Stadium, WarsawOlimpiyskiy National Sports Co
Show what the answer should be
tablemdateteamname June Greece June Greece
From the previous query you can see that Lars Bender's scored a goal in game Now we want to know what teams were playing in that match.
Notice in the that the column matchid in the goal table corresponds to the id column in the game table. We can look up information about game by finding that row in the game table.
Show id stadium, team team for just game
tableDonbass ArenaOlimpiyskiy National Sports ComplexDonbass ArenaNational Stadium, WarsawOlimpiyskiy National Sports Complex
Show what the answer should be
tableidstadium,teamteamArena Lviv,DEN,GER
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started