SELECT * FROM person p, accounts a
LEFT JOIN preferences pref ON pref.id = p.pref_id AND pref.name = 'glue'
will fail, but this
SELECT * FROM person p
LEFT JOIN preferences pref ON pref.id = p.pref_id AND pref.name = 'glue'
LEFT JOIN accounts a ON a.id = p.account_id AND a.name = 'snoop'
will work.
Keine Kommentare:
Kommentar veröffentlichen