Using NHibernate from C# and only HQL (not SQL) in a way that is compatible with MS SQL Server 2005/2008 (and preferably Oracle).
Is there a way to write the order by clause so that nulls will sort at the end of the query results while the non-null results will be sorted in ascending order?
Based on the answer to the question referenced by nickf the answer is:
select x from MyClass x order by case when x.MyProperty is null then 1 else 0 end, x.MyProperty