![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am using the following code: Select trunc (To_Date (call_start_dt)), count(*) from IVRREPORTING.CALLDETAIL where (call_start_dt > '2006-07-01 00:00:00' and call_start_dt < '2006-07-31 00:00:00' and id_calllogging is null) group by trunc (To_Date (call_start_dt)) Getting the following error: ORA-01861 Literal Does Not Match Format String Can anyone offer some advice? |
#3
| |||
| |||
|
|
On 3 Aug 2006 13:12:55 -0700, virgilbvm1 (AT) yahoo (DOT) com wrote: You would better use the add_month function like this = add_month(to_date('2006-07-01 00:00:00','yyyy-mm-dd hh24:mi:ss'),1)-(1/3600) which means August 1, min one second. |
#4
| |||
| |||
|
|
Sybrand Bakker wrote: On 3 Aug 2006 13:12:55 -0700, virgilbvm1 (AT) yahoo (DOT) com wrote: You would better use the add_month function like this = add_month(to_date('2006-07-01 00:00:00','yyyy-mm-dd hh24:mi:ss'),1)-(1/3600) which means August 1, min one second. Sybrand - Do you have a special reason why you use "<= add_month(..)-one_second" instead of "< add_month(..)" ? best, Martin |
#5
| |||
| |||
|
|
On 4 Aug 2006 17:09:22 -0700, "Martin T." bilbothebagginsbab5 (AT) freenet (DOT) de> wrote: Sybrand Bakker wrote: On 3 Aug 2006 13:12:55 -0700, virgilbvm1 (AT) yahoo (DOT) com wrote: You would better use the add_month function like this = add_month(to_date('2006-07-01 00:00:00','yyyy-mm-dd hh24:mi:ss'),1)-(1/3600) which means August 1, min one second. Sybrand - Do you have a special reason why you use "<= add_month(..)-one_second" instead of "< add_month(..)" ? I want to make sure I include the entire day, even if there is a time in it. This construction also warns me there *is* a time in it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |