I am trying to do a left join such that I get all rows from left table even when the join condition is not true for those rows.
Example: Below Aid = Bid but Table B has only 3 ids
The Query that I am using gives only rows where the join condition is true. Is there a way to get all rows from left table even when the Join condition is not true?
My Query:
SELECT Table1.Aid,
Table2.Bid,
Table2.Issueid
FROM Table1
LEFT JOIN Table2 ON Table1.Aid = Table2.Bid;
WHERE Table2.Issueid IN (
'a',
'b'
)