Learning SQL - what am I doing wrong on this challenge???
Task is to figure out which author has written over 1 million words. Here is what I wrote, and I'm pretty sure it is correct (I have also found other peoples answers on google and they match mine, but the next step is greyed out..)
SELECT author, SUM(words) AS total_words FROM books GROUP BY author;
SELECT author, SUM(words)
AS total_words
FROM books
GROUP BY author
HAVING total_words > 1000000
Please sign in to leave a comment.