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 Count.

611993Dec 10 2007 — edited Nov 6 2010
Hi-

How do I get a count of distinct records in a table? When I do a distinct on a single column it works, but not when I put a *.

I tried

select count(distinct(*)) from table1;
select count(distinct *) from table1;

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 15 2008
Added on Dec 10 2007
17 comments
1,133 views