Need help with a query:
SELECT a.id, b.id FROM t1 AS a, t2 AS b WHERE a.id=123 AND b.id=a.id;
This only works if there is a b.id that matches a.id... but what to write if I want it to work even if b.id are missing ?
I want it to get all id from A and only id from B if there is a matching id.
Sry for my bad english, hope you understand my question.
Regards