On 04/29/2010 05:08 PM, Thomas Kellerer wrote:
> SELECT organization, state, lastdate, age(lastdate)
> FROM (
> SELECT organization,
> state,
> (select max(idate) from times where
> customers.custid=times.custid and taskid = 27) as lastdate
> FROM customers
> ) t
> order by lastdate desc
Ah, yes, that does work, very nice. Thank you.
-Andy