I am currently trying to write an SQL statement that prompts for information between two time periods. I am trying to prompt between two dates, unfortunately I have a timestamp field within the date field. I am not sure how to be able to pull the date field out or to be able to prompt the date field and time field within the same prompt. Below is a look at the data I'm working with, and below that is the SQL I have created. Any help would be greatly appreciated.
Thanks
ERROR_TIMESTAMP
2004-06-20 00:07:18
Select *
FROM RPT210ERROR_HAND
WHERE (ERROR_TIMESTAMP TO_DATE >= ('06-20-2004','yyyy-mm-dd hh:mm:ss'))
and (ERROR_TIMESTAMP TO_DATE <= ('06-24-2004','yyyy-mm-dd hh:mm:ss'))
Thanks
ERROR_TIMESTAMP
2004-06-20 00:07:18
Select *
FROM RPT210ERROR_HAND
WHERE (ERROR_TIMESTAMP TO_DATE >= ('06-20-2004','yyyy-mm-dd hh:mm:ss'))
and (ERROR_TIMESTAMP TO_DATE <= ('06-24-2004','yyyy-mm-dd hh:mm:ss'))