From 06b0b03f92063ba9c9dea6db15bc638768542947 Mon Sep 17 00:00:00 2001 From: Sandeep Reddy <30605278+Sandeep501@users.noreply.github.com> Date: Fri, 11 Dec 2020 13:17:27 +0530 Subject: [PATCH] Update 6-JOIN.sql SQLZOO Question No 6 : Updated answer as per the Query return value. --- SQLZOO Solutions/6-JOIN.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SQLZOO Solutions/6-JOIN.sql b/SQLZOO Solutions/6-JOIN.sql index a547ead..954cea1 100644 --- a/SQLZOO Solutions/6-JOIN.sql +++ b/SQLZOO Solutions/6-JOIN.sql @@ -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 /*