I would like to create a SQL using LEFT JOIN. I did this SQL, but it did not work:
SELECT
*,
p.parametro AS cidade,
cpr.codTipo AS tipoAcompanhante
FROM
cadastroperfil AS cp,
cadastroprofissional AS cpr,
parametro AS p
WHERE
cp.verificado = '1'
AND
cp.codCadastroPerfil = '11'
AND
cpr.codCadastroPerfil = '11'
AND
cp.codCidade = p.idParametro
The return is zero, but has records in the database. Can anyone suggest anything to me? Thankful
All these tables have relationship with each other, through the CodeProfile