Mysql
 sql >> Base de données >  >> RDS >> Mysql

enregistrements en double dans SQL JOIN

Essayez celui-ci

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
)