I am trying to fetch data from 2 tables, Table A and Table B. Table A has id , name , description. Table B has name , details , sub_details.
There are total 10 records in A and 5 Records in B.
if I execute a query,
select a.id , a.name , b.details , b.sub_details
from A a, B b
where a.name = b.name and b.name like "%ABC%";
the result will be show the records which has ABC
in b.name
column and where the same is present in A table. Now the issue occurs when any of the table does not have the data, and in that case entire result is blank.
my question is , what query shall I execute if I want to get the results even if any of the table does not have the data ?