Welcome to the Treehouse Community
Looking to learn something new?
Problems with SQL Challenge
I have tried this challenge with the attached SQL statement. It works correctly in the SQL playground, but generates an error in the code challenge. Andrew Chalkley
SELECT title, LENGTH(title) AS longest_length FROM books ORDER BY longest_length DESC LIMIT 1;
Steven Parker215,939 Points
They had a few bugs on initial rollout, I think this one has been fixed so that it will will pass the challenge now.
Give it another try.
My own solution didn't work until just a while ago either, but now it does. I did it this way:
SELECT title, MAX(LENGTH(title)) AS longest_length FROM books;