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 -> Re: Complex SELECT problem

Re: Complex SELECT problem

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Mon, 08 Mar 2004 10:56:32 -0800
Message-ID: <1078772158.54224@yasure>


Dulare wrote:
> Hi.
>
> SELECT article, price, decode(on_stock, 'Y', 'Yes', 'N', 'No')
> WHERE purchase_date BETWEEN %start and end date%
> ORDER BY article
>
> Pawel Dulak

Yes but not with your code. Where did you get the following: WHERE purchase_date BETWEEN %start and end date%?

This should be written as:

WHERE purchase_date BETWEEN start_date AND end_date;

and you need to provide the values of start_date and end_date date variables.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Mon Mar 08 2004 - 12:56:32 CST

Original text of this message

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