Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions SQLZOO Solutions/6-JOIN.sql
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ SELECT stadium, COUNT(stadium)
/*
For every match involving 'POL', show the matchid, date and the number of goals scored.
*/
SELECT matchid,mdate, COUNT(mdate)
SELECT matchid,mdate, COUNT(player)
FROM game JOIN goal ON matchid = id
WHERE (team1 = 'POL' OR team2 = 'POL')
GROUP BY mdate, matchid
group BY mdate , matchid
order by matchid ASC

# 12
/*
Expand Down