Created
May 7, 2012 22:40
-
-
Save simonista/2631125 to your computer and use it in GitHub Desktop.
sql-question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select id, avatar_image_url as aiu from users order by aiu; -- works! | |
select id, avatar_image_url as aiu from users order by coalesce(avatar_image_url, 'zzz'); -- works! | |
select id, avatar_image_url as aiu from users order by coalesce(aiu, 'zzz'); -- doesn't work :( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment