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: Mark C. Stock <mcstockX_at_Xenquery>
Date: Tue, 20 Dec 2005 10:49:19 -0500
Message-ID: <2_SdnStEvcuetTXenZ2dnUVZ_sudnZ2d@comcast.com>

"SunScreen" <alampro_at_yahoo.com> wrote in message news:1135092970.325977.267660_at_g47g2000cwa.googlegroups.com...
> The problem is that DISTINCT applies to Field1, with duplicate values.
> In the first query everything is ok, In the second query results have
> duplicate values for Field1.
>

still no sample data

still guessing what the problem is...

in SQL, DISTINCT applies to the entire select list (as mentioned before). are you expecting it to apply to only the first field in your select list?

are the rows in the resultset distinct? then its working, and you're expecting the wrong results/effect

++ mcs Received on Tue Dec 20 2005 - 09:49:19 CST

Original text of this message

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