I need to write a sql query to find out in which table holds the duplicate data.
Duplicate : AAA company should be present(mapped) only once with XXX Partner. If it is repeated then would be considered as duplicate
Please help in writing this query
Table A Table B Table C
company Partners company Partners company Partners
AAA XXX AAA XXX AAA XXX
BBB YYY BBB YYY BBB YYY
AAA XXXX (duplicate Data)
Expected o/p :
table A contains duplicate data , or Table B contains Duplicate Data ETc...