Re: [SQL] Orderby two different columns

2000-06-23 Thread Oliver Elphick
"Mitch Vincent" wrote: >I need to order search results by the two dates. Here is the problem.. > >They want whichever date is the most recent to appear on top.. If I do >'order by resubmitted desc,created desc' I get something like this : > >Applicant Re-submitted Created >A 06/05/2

Re: [SQL] Orderby two different columns

2000-06-23 Thread Tom Lane
"Mitch Vincent" <[EMAIL PROTECTED]> writes: > Ok, see applicant J? I need him to be above C. Your example was about as transparent as mud, but maybe you are looking to sort on MAX(resubmitted, created) or something like that? Anyway I'd think that sorting on some function of the two dates is pro