List NULLs at end of query output

from the Artful Common Queries page


If ordering by col...
... ORDER BY IF(col IS NULL, 0, 1 ), col ...

Last updated 30 Dec 2009




Return to the Artful Common Queries page