Mysql
 sql >> Datenbank >  >> RDS >> Mysql

MYSQL Select innerhalb derselben Tabelle

SELECT a.id as problem_id
FROM TABLE_A as a JOIN TABLE_A as b
ON a.type = b.type
WHERE a.value1 <> b.value1 OR a.value2 <> b.value2
GROUP BY problem_id;