| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: How To List Duplicate Records ?..
Hi Angelica
select distinct a.cust_id,b.cust_num from customer a,customer b where a.cust_num=b.cust_num and not a.cust_id = b.cust_id;
You receive Cust_ID with duplicated records Cust_Num
Angelica Veron ïèøåò â ñîîáùåíèè <378281FC.FF6D8701_at_globalserve.net> ...
> This table was recently created, and I need to check for the
>existance of records with differing CUST_ID's but have the same
>CUST_NUM. Overall, I need to locate all records which have the same
>CUST_NUM, but different CUST_ID's , and the CUST_CURRENT_FLAG has to
>equal 'Y' (meaning they are current). Does anyone know which query will
>list such duplicate records for me ??... any help would be greatly
>appreciated, thank you for your time.
Best regards
Всех Благ
---
Origin ... Просто надо очень верить этим синим маякам...
Romanov Alexander
Alex_Romanov_at_mail.ru
ICQ 6220754
Received on Wed Jul 07 1999 - 06:10:33 CDT
![]() |
![]() |