Getting date between the SYSTIMESTAMP.
736579Apr 27 2010 — edited Apr 27 2010Hi,
I am trying pull the data from the table between the systimestamp and I am getting the missing right parenthesis error.
select count(*) from test_track
where track_date
between
(
(TO_DATE(SYSTIMESTAMP) + NUMTODSINTERVAL(0,'HOUR'))
and
(TO_DATE(SYSTIMESTAMP) + NUMTODSINTERVAL(11,'HOUR'))
)
I am trying to kick in a job daily at 11:00 night and I want to pull the data from early morning to 11:00 P.M. Any help is appreciated.
Thanks.