1
I’m making an appointment using INNER JOIN, but when I do the JOIN on the table A with the B and there is no id in the table B, he returns me a array empty. I would like it if it did not find the id in the table B return to table A either way or both but with the blank fields in the table B. I’m using the following code:
SELECT *
FROM projects AS p
INNER JOIN project_images AS img ON p.id = img.project_id
WHERE p.id = 44
LIMIT 1
Put the structure of the tables, please.
– Lucas Henrique