select distinct c_doc_code, c_product_code from table1 t1 where ( select count(*) from table1 t2 where t2.c_product_code=t1.c_product_code ) > 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)