| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Best way to do this query?
JOG wrote:
> SELECT A.invoiceid, A.customerid, A.date, A.amount, Max(A.date -
> B.date)
> FROM invoices AS A
> INNER JOIN invoices AS B
> ON A.customerid = B.customerid
> GROUP BY A.customerid
I do not see how this query could produce the desired result
Received on Wed Jan 17 2007 - 08:48:15 CST
![]() |
![]() |