I am doing a query with MySQL where I have some establishments and in another table I have the comments of the establishment.
This is the query I do:
SELECT *
FROM establecimientos
INNER JOIN comentarios ON establecimientos.id = comentarios.id_establecimiento
WHERE establecimientos.id = 30
It shows it to me but when the table comentarios
has a comentarios.id_establecimiento
equal to establecimientos.id
. What I'm looking for is that although there are no comments the same shows me the data of the query.