Hi,
CR 10
Oracle Ora10gR2
I have 2 parameters {?Start_Date} and {?End_Date} with the following record selection criteria:
(
If {?Database_Name} <> 'ALL'
then {BACKUP_HIST_V1.DB_NAME} = {?Database_Name}
else if {?Database_Name} = 'ALL'
then true
)
and
(
if {?Start_Date} <> date(9999,9,9)
then {BACKUP_HIST_V1.START_TIME} >= {?Start_Date}
else if {?Start_Date} = date(9999,9,9)
then true
)
and
(
if {?End_Date} <> date(9999,9,9)
then {BACKUP_HIST_V1.END_TIME} <= {?End_Date}
else if {?End_Date} = date(9999,9,9)
then true
)
{BACKUP_HIST_V1.START_TIME} and {BACKUP_HIST_V1.END_TIME} are ORACLE table fields with datatype DATETIME such as 2008/02/03 4:49:02PM.
The parameters {?Start_Date} and {?End_Date} have a Value type: Date - because the user only wants to be prompted for the START DATE and END DATE.
When I run the report with the following discrete values:
Database_Name -> 'All'
Start_date -> 2008/02/03
End_date -> 2008/02/04
I get the following results which are incorrect:
DB Name START_DT END_DT
AAA 03/FEB/08 22:11:05 03/FEB/08 22:29:31
BBB 03/FEB/08 22:31:56 04/FEB/08 00:14:04
CCC 03/FEB/08 22:50:53 03/FEB/08 23:09:18
DDD 04/FEB/08 16:49:25 04/FEB/08 18:40:43
EEE 04/FEB/08 16:49:57 04/FEB/08 19:01:18
According to the record selection criteria above, records DDD and EEE should not be displayed because the DATE must be between 2008/02/03 AND 2008/02/04.
However if I change the value type of the parameters from Date to DateTime, my results will be correct. If I change it to DateTime, it will prompt the user to enter the time along with the date. The user does not want to enter the time, only the date.
How do I go about fixing this.
Thanks
CR 10
Oracle Ora10gR2
I have 2 parameters {?Start_Date} and {?End_Date} with the following record selection criteria:
(
If {?Database_Name} <> 'ALL'
then {BACKUP_HIST_V1.DB_NAME} = {?Database_Name}
else if {?Database_Name} = 'ALL'
then true
)
and
(
if {?Start_Date} <> date(9999,9,9)
then {BACKUP_HIST_V1.START_TIME} >= {?Start_Date}
else if {?Start_Date} = date(9999,9,9)
then true
)
and
(
if {?End_Date} <> date(9999,9,9)
then {BACKUP_HIST_V1.END_TIME} <= {?End_Date}
else if {?End_Date} = date(9999,9,9)
then true
)
{BACKUP_HIST_V1.START_TIME} and {BACKUP_HIST_V1.END_TIME} are ORACLE table fields with datatype DATETIME such as 2008/02/03 4:49:02PM.
The parameters {?Start_Date} and {?End_Date} have a Value type: Date - because the user only wants to be prompted for the START DATE and END DATE.
When I run the report with the following discrete values:
Database_Name -> 'All'
Start_date -> 2008/02/03
End_date -> 2008/02/04
I get the following results which are incorrect:
DB Name START_DT END_DT
AAA 03/FEB/08 22:11:05 03/FEB/08 22:29:31
BBB 03/FEB/08 22:31:56 04/FEB/08 00:14:04
CCC 03/FEB/08 22:50:53 03/FEB/08 23:09:18
DDD 04/FEB/08 16:49:25 04/FEB/08 18:40:43
EEE 04/FEB/08 16:49:57 04/FEB/08 19:01:18
According to the record selection criteria above, records DDD and EEE should not be displayed because the DATE must be between 2008/02/03 AND 2008/02/04.
However if I change the value type of the parameters from Date to DateTime, my results will be correct. If I change it to DateTime, it will prompt the user to enter the time along with the date. The user does not want to enter the time, only the date.
How do I go about fixing this.
Thanks