thumper808
Technical User
Hi Guys, yet again, I am requesting knowledge from the all-powerful Tek-Tips team. First things first...
1. I have an Oracle database that has a column for a datetime stamp. This datetime stamp (ie: 28 Apr 2005 08:44) is not stored as a datetime datatype, it's stored as a varchar string datatype.
____________________
2. I have a Crystal Reports 10 report that has a FromDate and a ToDate parameter which I am calling in the Select Expert in the following manner... {UD_CALL.DateColumn} in {?FromDate} to {?ToDate}
_____________________
3. The problem that I've encountered is if I select FromDate as 01 Apr 2005 00:01 and ToDate as 30 Apr 2005 23:59 I get the following: (just a sample)
07 Apr 2005 10:11
07 Apr 2005 10:42
07 Apr 2005 15:44
23 Mar 2005 09:35
24 Mar 2005 09:38
02 May 2005 08:34
26 Apr 2005 08:42
_____________________
4. Now, I don't care what order the data is in for the BUT I do care that I didn't even ask for March or May! I am not saying I'm an expert at this but my suspicion is that my problem lies in the datatype area.
If I go into the Oracle's SQL editor, I run the following statement as an experiment:
select DateColumn from ud_call where "UD_CALL"."DateColumn" like '04 Apr 2005%'
- What I get is exactly what I want...all entries that start with 04 Apr 2005 ---Which is great BUT [highlight]how can I tell Crystal Reports to search on 2 dates using the LIKE syntax so I can get the range I so desperately want accurately?[/highlight]
I have tried every imaginable solution. Please, any help would be useful. Thank you and have a great day.
Thumper
1. I have an Oracle database that has a column for a datetime stamp. This datetime stamp (ie: 28 Apr 2005 08:44) is not stored as a datetime datatype, it's stored as a varchar string datatype.
____________________
2. I have a Crystal Reports 10 report that has a FromDate and a ToDate parameter which I am calling in the Select Expert in the following manner... {UD_CALL.DateColumn} in {?FromDate} to {?ToDate}
_____________________
3. The problem that I've encountered is if I select FromDate as 01 Apr 2005 00:01 and ToDate as 30 Apr 2005 23:59 I get the following: (just a sample)
07 Apr 2005 10:11
07 Apr 2005 10:42
07 Apr 2005 15:44
23 Mar 2005 09:35
24 Mar 2005 09:38
02 May 2005 08:34
26 Apr 2005 08:42
_____________________
4. Now, I don't care what order the data is in for the BUT I do care that I didn't even ask for March or May! I am not saying I'm an expert at this but my suspicion is that my problem lies in the datatype area.
If I go into the Oracle's SQL editor, I run the following statement as an experiment:
select DateColumn from ud_call where "UD_CALL"."DateColumn" like '04 Apr 2005%'
- What I get is exactly what I want...all entries that start with 04 Apr 2005 ---Which is great BUT [highlight]how can I tell Crystal Reports to search on 2 dates using the LIKE syntax so I can get the range I so desperately want accurately?[/highlight]
I have tried every imaginable solution. Please, any help would be useful. Thank you and have a great day.
Thumper