btscotland
Technical User
Hi there
I am quite new to working with Oracle and I am having a problem with a query that I am trying to create to deliver through a web page which is very basic indeed.
I have a web form(.asp) that passes through a date to a page that queries the oracle DB.
The query that I am executing is:
SELECT CALL_LIST, WRAP_CODE, ACCOUNT, CUSTOMER_NAME, HANDLE, DIALLED_NUMBER, AGENT_ID, AGENT_DN, MISC, DTM, BUSINESS_AREA FROM LMS.WRAP_CODE where DTM > to_timestamp('12-NOV-10')
This statement works perfectly and returns me what I expect. The problem is that I want to introduce the time element to this as the date in the field is 'dd/mm/yyyy hh:mm:ss' however when I try to do this like this:
SELECT CALL_LIST, WRAP_CODE, ACCOUNT, CUSTOMER_NAME, HANDLE, DIALLED_NUMBER, AGENT_ID, AGENT_DN, MISC, DTM, BUSINESS_AREA FROM LMS.WRAP_CODE where DTM > to_timestamp('12-NOV-10 19:00:00')
I get no results. The field does have both time date and time in it so I am sure it must be something simple.
Any help would be much appreciated.
Brian
I am quite new to working with Oracle and I am having a problem with a query that I am trying to create to deliver through a web page which is very basic indeed.
I have a web form(.asp) that passes through a date to a page that queries the oracle DB.
The query that I am executing is:
SELECT CALL_LIST, WRAP_CODE, ACCOUNT, CUSTOMER_NAME, HANDLE, DIALLED_NUMBER, AGENT_ID, AGENT_DN, MISC, DTM, BUSINESS_AREA FROM LMS.WRAP_CODE where DTM > to_timestamp('12-NOV-10')
This statement works perfectly and returns me what I expect. The problem is that I want to introduce the time element to this as the date in the field is 'dd/mm/yyyy hh:mm:ss' however when I try to do this like this:
SELECT CALL_LIST, WRAP_CODE, ACCOUNT, CUSTOMER_NAME, HANDLE, DIALLED_NUMBER, AGENT_ID, AGENT_DN, MISC, DTM, BUSINESS_AREA FROM LMS.WRAP_CODE where DTM > to_timestamp('12-NOV-10 19:00:00')
I get no results. The field does have both time date and time in it so I am sure it must be something simple.
Any help would be much appreciated.
Brian