I am doing a left outer join :
select * from tableA
left join tableB on tableA.tableB_id = tableB.id
How can I add another search criteria on tableB only for matching tableB records? (like 'and tableB.firstname like 'a_firstname%') If I do :
select * from tableA
left join tableB on tableA.tableB_id = tableB.id
where tableB.firstname like 'a_firstname%'
it doesn't display records where on tableA.tableB_id = tableB.id doesn't match.