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

Home -> Community -> Usenet -> c.d.o.misc -> SQL Statement

SQL Statement

From: Rajesh M <raju_m_at_hotmail.com>
Date: 1998/10/20
Message-ID: <362cb89c.0@news.euroconnect.dk>#1/1

Hi,

    I have problem with SQL. Could somebody please help !!!

Table X
OrderNo OrderDate Customer


1                20-10-98        1000
2                19-10-98        1000
3                20-10-98        2000
4                17-10-98        3000

I would like to have a single query which returns all the OrderNo dated '20-10-98' (i.e., Customer 1000,2000) and OrderNo dated before '20-10-98' for customer with OrderDate='20-10-98'.

The expected result for the query is as follows : OrderNo OrderDate Customer


1                20-10-98        1000
2                19-10-98        1000
3                20-10-98        2000

Please help and thanks in advance,

Rajesh Received on Tue Oct 20 1998 - 00:00:00 CDT

Original text of this message

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