3
as I have three tables WHERE
select login, nome_hotel from extranet_login, extranet_hoteis, hoteis
where extranet_login.id_login=extranet_hoteis.id_login
and extranet_hoteis.id_hotel=hoteis.id_hotel
and extranet_login.login='admin';
for inner join
SELECT login, nome_hotel
FROM extranet_login
INNER JOIN extranet_hoteis ON extranet_login.id_login = extranet_hoteis.id_login
INNER JOIN hoteis ON hoteis.id_hotel = extranet_hoteis.id_hotel
INNER JOIN extranet_login ON extranet_login.login = 'admin';
You are wrong?
I don’t understand why they gave you -1. I found the question pertinent. + 1 for you to help restore a little reputation. Unfortunately there are many people who keep giving -1 without following the correct rules of the site.
– Allan Andrade
I tried to help, check the answer sff
– Pedro Luzio