I need to draw from these three tables:
user:
user_type
restaurant:
all those restaurants that do not belong or do not have a type_user 1 (owner), that is to say in this case I would need to take out restaurant winery and restaaa that they have no owner user.
What I have tried is this but nothing ....
select r.*
from restaurante r
inner join usuario u
on u.id_restaurante = r.id
left join tipo_usuario t
on t.id = u.id_tipo_usuario
where u.id_tipo_usuario = 1
and u.id_restaurante is null