Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Distinct not working when convert DATE using TO_CHAR
Following is the data:
Number Date
and the actual query:
select Field1 "Number", to_char(time, 'MM/DD/YYYY HH24:MI:SS') "Date"
from audit_iedata where ( time >= to_date('19-DEC-2005 13:00',
'DD-MON-YYYY:HH24:MI') and time <= to_date('19-DEC-2005 14:00',
'DD-MON-YYYY:HH24:MI'));
How can I get only first occurence of Field1 ? ie:
Number Date
![]() |
![]() |