Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> date format in SQL query
I got the following query to work, but I wonder if there isn't an
easier way? In MS Access I would be able to just say 'BETWEEN
#10/1/99# and #10/30/99#'. Is there some sort of comparable syntax in
Oracle?
select a.SOURCE_AU, Count(a.DEPOSIT_UISN) as NumDeposits
from T_DW_SOW_DEPOSITS a
where a.PROCESS_DATE
between
TRUNC(TO_DATE('10011999', 'MMDDYYYY')) and TRUNC(TO_DATE
('10301999', 'MMDDYYYY'))
group by a.SOURCE_AU
TIA,
Nolan Madson
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Nov 30 1999 - 17:21:52 CST
![]() |
![]() |