Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Distinct not working when convert DATE using TO_CHAR

Re: Distinct not working when convert DATE using TO_CHAR

From: SunScreen <alampro_at_yahoo.com>
Date: 21 Dec 2005 00:09:16 -0800
Message-ID: <1135152555.921893.184060@z14g2000cwz.googlegroups.com>


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

Received on Wed Dec 21 2005 - 02:09:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US