You have to user FULL OUTER JOIN
here is the query
SELECT table1.id,
CASE WHEN table2.sal IS NULL then 'unmatched'
ELSE 'matched' END AS status,
table1.name,table1.address
FROM table1 FULL OUTER JOIN table2 ON TABLE1.id = tables2.id
please mark it as answer if it helps.