From 2c42302d68c666c89751125dbbdbc60a57359ef8 Mon Sep 17 00:00:00 2001 From: frenchmomsecrets <82918917+frenchmomsecrets@users.noreply.github.com> Date: Sat, 4 Sep 2021 15:35:50 -0400 Subject: [PATCH] Update README.md Changed lines 428 and 429 left table changed from 'album' to 'artist' and afterwards join on 'album' this way we have all the artists, even those that don't have any album (as per the exercise stated: " Find a list of *all* artists and how many albums they have" otherwise in the proposed solution we only have the artist we have at least 1 album. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 921a2c7..3f00310 100644 --- a/README.md +++ b/README.md @@ -425,8 +425,8 @@ GROUP BY g.name; ```sql SELECT ar.name, COUNT(*) -FROM album al -JOIN artist ar ON ar.artist_id = al.artist_id +FROM artist ar +JOIN album al ON ar.artist_id = al.artist_id GROUP BY ar.name; ```