NOTE My values were actually empty strings not null.
I want to sort my table Album ASC with nulls at the end. Every stack overflow post i found didn't work on my database.
Following doesn't work:
- SELECT Album FROM songs ORDER BY isnull(Album,'1')
- SELECT Album FROM songs ORDER BY Album NULLS LAST
- SELECT Album FROM songs ORDER BY Album IS NULL
- SELECT Album FROM songs ORDER BY -Album DESC
- SELECT Album FROM songs ORDER BY ISNULL(Album), Album ASC
- SELECT Album FROM songs ORDER BY ISNULL(Album)
- SELECT Album FROM songs ORDER BY (CASE WHEN Album IS NULL then 1 ELSE 0 END),Album
- SELECT Album from songs ORDER BY ISNULL(Album),Album;
- SELECT Album FROM songs ORDER BY case when Album is null then 2 else 1 end, Album