需求
根据org_code,company_code,查找出重复数据
表结构和数据
SQL
SELECT
a.*
FROM
cgbl a
WHERE
( a.org_code, a.company_name ) IN (
SELECT
b.org_code, b.company_name
FROM
cgbl b
GROUP BY
b.org_code, b.company_name
HAVING
COUNT(*) > 1
)