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: newbie : writing an efficient query

Re: newbie : writing an efficient query

From: Eddie Awad <ra3masis_at_gmail.com>
Date: 4 Aug 2006 16:28:47 -0700
Message-ID: <1154734127.227619.11110@75g2000cwc.googlegroups.com>

dn.perl_at_gmail.com wrote:
> One more point which I have been curious about .
> Why doesn't 'distinct' work on composite fields?
>
> Table t1 : a1 number, a2 number.
> Entries : (1,11) (2,21), (2,22) (2,22) (2,23) (2,23)
> (3,33) (3, 33)
>
> select distinct(a1, a2) from t1 ... does not work.
> How do I write that query?

Remove the parentheses:

select distinct a1, a2 from t1

Documentation: http://snipurl.com/uf81 Received on Fri Aug 04 2006 - 18:28:47 CDT

Original text of this message

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