You can write left outer join between this two tables Best way to understand is check the below image
Query for your requirement
SELECT A.uid, A.name, B.address FROM A LEFT JOIN B ON A.uid=B.uid
Reading this original article on The Code Project will help you a lot: Visual Representation of SQL Joins.
Find original one at: Difference between JOIN and OUTER JOIN in MySQL.