Disclaimer: it is probably a trivial mistake.
To solve the query at this link:
Can you return the results with a column named sound that returns "talk" for humans, "bark" for dogs, and "meow" for cats?
I need to write a CASE with multiple possibilities.
What is wrong with the following syntax?
SELECT *
CASE
WHEN species='human' THEN 'talk'
WHEN species='dog' THEN 'bark'
WHEN species='cat' THEN 'meow'
END AS sound
FROM friends_of_pickles
;
I double-checked the syntax bar reading this question and it seems correct to me?
Where is the mistake?
Thank you very much in advance!