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

Home -> Community -> Usenet -> c.d.o.server -> Re: sql question - distinct

Re: sql question - distinct

From: PRP <priyarenj_at_gmail.com>
Date: 29 Nov 2006 02:02:38 -0800
Message-ID: <1164794558.781328.63630@14g2000cws.googlegroups.com>


I have one doubt regarding distinct.

select distinct(empno) ,ENAME from emp; select distinct EMPNO ,ENAME from emp;
>From my understanding of distinct clause, both the above queries will
give same result in all conditions. Is there any reason why I am allowed to write " distinct(columnname) " when its always expected to behave for the result row? Received on Wed Nov 29 2006 - 04:02:38 CST

Original text of this message

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