Forum Discussion
Here’s a simple script that will return all duplicate product_id and partner product_id combination
select a.part_prod_id, a.num_row
from (
select concat([parter product id], [product id]) as part_prod_id, count(concat([parter product id], [product id])) as num_row
from yourtable (nolock)
group by concat([parter product id], [product id])
) a
where a.num_row > 1
Related Content
- 11 months ago