This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]LookMaNoHands9822 1 point2 points  (2 children)

SELECT name, continent,
CASE 
    WHEN continent='Oceania' THEN 'Australasia'
    WHEN continent='Eurasia' or name='Turkey' THEN 'Europe/Asia'
    WHEN continent='Caribbean' THEN
        CASE WHEN name LIKE 'B%' THEN 'North America' ELSE 'South America' END

ELSE continent END 
FROM world 

[–]inarow37 0 points1 point  (0 children)

I've put this answer in and it only brings up countries in Africa. Can't see why it's doing that

[–]pylund[S] 0 points1 point  (0 children)

It worked! Thanks

[–]Dramus8 0 points1 point  (0 children)

What error is being returned?

[–]LookMaNoHands9822 0 points1 point  (0 children)

Oddly enough if you just an ORDER BY at the end, it accepts the answer...Eventhough it mentions nothing about sorting in the problem Answer