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 Select on Varchar2 Column

443081Aug 28 2006 — edited Aug 28 2006
Hi,

I have a unique problem - (no pun intended) - pls bare with me while I explain...

I have the following table (tbl_party) :

p_num VARCHAR2(30)
p_name VARCHAR2(100)
p_cert NUMBER
i_cat NUMBER
p_stat DATE

Test 1.
When I do a select count(distinct(p_num)) from tbl_party;
Return 6298 rows

Test 2.
When I do a select distinct(p_num) from tbl_party;
Return 6298 rows

Test 3.
When I do a select distinct(p_num), p_cert from tbl_party;
Return 6300 rows???

Can some1 pls enlighten me if there is a limitation on distinct/unique when using it on VARCHAR2??

Thanks in advance.

Jaco
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2006
Added on Aug 28 2006
5 comments
837 views