The following C# example orders by the field MyColumn ascending and keeps rows where MyColumn is NULL last.
var result = from a in dc.MyTable
orderby (a.MyColumn == null) ascending, a.MyColumn ascending
select a;
Rate this post:
var result = from a in dc.MyTable
orderby (a.MyColumn == null) ascending, a.MyColumn ascending
select a;
...random postings about web development and programming, Internet, computers and electronics topics.
I recommend ASPnix for web hosting and Crazy Domains for domains. Use my eBay affiliate link.
Get the latest posts delivered to your inbox.
Comments
There are no comments yet. Be the first to leave a comment!