Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Best way to do this query?

Re: Best way to do this query?

From: Cimode <cimode_at_hotmail.com>
Date: 17 Jan 2007 06:48:15 -0800
Message-ID: <1169045295.148450.70560@38g2000cwa.googlegroups.com>

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US