sql >> Base de Datos >  >> RDS >> Mysql

registros duplicados en SQL JOIN

Prueba 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
)