Hello once again experts,
I am really crunched for time and I know this will be an easy on for you guys I just can;t seem to get my head around it. I have the following query
Please not the Function_Convert is taking a number and converting that number to a date in format dd-mm-rr.
When I run this query I expect the output to sort the SDate field so it shows in asc order of all the dates and time however what I am seeing is the following
123 Mar 08, 2003 12:07:06 PM
123 Mar 08, 2003 12:04:42 PM
123 Mar 08, 2003 12:20:06 PM
Any ideas why it is doing this? For the life of me I can't figure it out. I am using oracle 9.2. Thanks again
I am really crunched for time and I know this will be an easy on for you guys I just can;t seem to get my head around it. I have the following query
Code:
select ID,
to_char(Function_Convert(SDate,'EDT'), 'MON DD, YYYY HH24:MI:SS AM') AS SDATE,
from Table A
where ID='123'
order by to_date(Function_Convert(SDate,'EDT'), 'DD-MON-RR');
Please not the Function_Convert is taking a number and converting that number to a date in format dd-mm-rr.
When I run this query I expect the output to sort the SDate field so it shows in asc order of all the dates and time however what I am seeing is the following
123 Mar 08, 2003 12:07:06 PM
123 Mar 08, 2003 12:04:42 PM
123 Mar 08, 2003 12:20:06 PM
Any ideas why it is doing this? For the life of me I can't figure it out. I am using oracle 9.2. Thanks again