Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DISTINCT doesn't work can anyone help me?

565927Sep 27 2007 — edited Sep 27 2007
Hi i am new to SQL and i have a problem with a query.I have joined two tables and expected
distinct rows. How can i retrieve distinct columns from database.

select DISTINCT d.dname,e.empno,e.ename from emp e,dept d where e.deptno=d.deptno
no order by empno;

any help will be greatly appriciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2007
Added on Sep 27 2007
10 comments
1,192 views