i'd like to get null values to show last i tried select c.country,NullOrderingReversal = case c.country when null then 'Z' else 'A' end from participants p left join placements pl on p.participantid=pl.participantid and pl.PlacementId in (select top 1 x.PlacementId from Placements x where x.ParticipantId = pl.ParticipantId order by [assumedposition?]) left join country c on c.id=pl.workcountryid group by c.country order by NullOrderingReversal,c.country
but it's still showing the null values first and the value for hte null field of nullorderingreversal is still A what am i doing wrong?