Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

registros duplicados no SQL JOIN


Tente este
SELECT p.amount
FROM payments p, charges ch, credits cr
WHERE (p.owner = 1001 AND ch.owner = 1001 AND cr.owner = 1001 AND p.owner=ch.owner AND
p.owner=cr.owner
)