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

[SQL] Orderby two different columns

2000-06-23 Thread Mitch Vincent
I ran into a problem today that I hope someone can help me with... I have a database (and application) that is used to track 'applicants'.. These applicants have two timestamp fields associated with their records and both have relevance as to how long the applicant has been available.. The resub