I have this query that basically retrieve 2 tables (tbl_users and tbl_moreInfo) based on selected user ID. It works fine but there are times that the tbl_users has the ID that the tbl_moreInfo doesn't have so it returns empty row. I would still want to retrieve tbl_users even though there are no ID matched in tbl_moreInfo in just 1 query.
This is my query:
SELECT T1.*, T2.*
FROM tbl_users T1
INNER JOIN tbl_moreInfo T2
ON T1.ID=T2.ID
WHERE T1.ID=1
Thanks in Advance :)