Problem with a date in the query !!
- From: "gab" <gmessad@xxxxxxxxxx>
- Date: Sun, 25 Dec 2005 13:34:59 +0100
Hello !!
I've got a problem with a query,I would like to select some data from "
TbOrder"
table where the period date is from the 01/04/(current year) to 31/March
/( year +1 )
This is my query but it's doesn't work :
Select *
from TbOrder a
WHERE TO_CHAR(a.dat_cde,'DDMMYYYY')
between TO_CHAR('0104'||TO_CHAR(SYSDATE,'YYYY'),'DDMMYYYY')
to TO_CHAR('3103'||TO_CHAR(SYSDATE,'YYYY')+1,'DDMMYYYY')
Could you help me for this probleme !
Thanks
Gab
.
- Follow-Ups:
- Re: Problem with a date in the query !!
- From: William Robertson
- Re: Problem with a date in the query !!
- From: Michel Cadot
- Re: Problem with a date in the query !!
- Prev by Date: Oracle 9i tutorial or ebook
- Next by Date: Re: Problem with a date in the query !!
- Previous by thread: Oracle 9i tutorial or ebook
- Next by thread: Re: Problem with a date in the query !!
- Index(es):
Relevant Pages
|