From d3c2fa30b5ee23410959e77c6a762a697d9a727e Mon Sep 17 00:00:00 2001 From: Sunnyhp Date: Wed, 9 Jan 2019 16:31:12 +0800 Subject: [PATCH] Update 7_more_join_operations.sql fix # 15 error --- 7_more_join_operations.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/7_more_join_operations.sql b/7_more_join_operations.sql index 15d5953..faed682 100644 --- a/7_more_join_operations.sql +++ b/7_more_join_operations.sql @@ -126,7 +126,7 @@ FROM movie JOIN casting ON movie.id = casting.movieid WHERE movie.yr = 1978 -GROUP BY movie.id +GROUP BY movie.title ORDER BY COUNT(*) DESC -- # 16. List all the people who have worked with 'Art Garfunkel'. @@ -143,4 +143,4 @@ SELECT a.name JOIN casting ON casting.actorid = actor.id WHERE actor.name != 'Art Garfunkel') as a - ON m.id = a.movieid; \ No newline at end of file + ON m.id = a.movieid;