Problem with a date in the query !!



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


.



Relevant Pages

  • Re: Problem with a date in the query !!
    ... what is the query in SQL if I want to extract some date with the period ... > | TbOrder" ... complete error message helps to understand the problem ...
    (comp.databases.oracle.misc)
  • Re: Problem with a date in the query !!
    ... | TbOrder" ... - "it does not work" is not a valid error message, giving the actual and complete error message helps to understand the problem ... Michel Cadot ... Prev by Date: ...
    (comp.databases.oracle.misc)
  • Re: Help,problem query !!
    ... | TbOrder" ... Regards ... Michel Cadot ... Prev by Date: ...
    (comp.databases.oracle.server)