| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Selecting Distincts
How about this:
select A.emp_id
, A.emp_dept
, B.emp_name
, B.emp_desc
from (select distinct emp_id
, emp_dept
from emp) A
, emp B
where A.emp_id = B.emp_id
and A.emp_dept = B.emp_dept
Good Luck!
+--------------------------------------------------------------------------+ | Vitaliy Mogilevskiy | Senior Consultant | CORE Technology Group, Inc. | E-mail: vit100gain_at_earthlink.net | Fax : (707) 516-2163 | Web Page: http://home.earthlink.net/~vit100gain/index.html | *** Free DBA Script Library at my Web Page *** +--------------------------------------------------------------------------+
MKB wrote:
> Sybrand,
>
>
>
>
>
![]() |
![]() |