1
I have two tables I need to manipulate:
- interventioniscy : idintervencaopriority , idcelula...
cellula : idcelula, name...
SELECT ip.idintervencaoprioridade, zc.nome nome_celula FROM intervencaoprioridade ip LEFT JOIN celula zc ON ip.idcelula = zc.idcelula WHERE ip.idintervencaoprioridade = 22
The field ip.idcelula
can be NULL
, but when I do this query returns the first record of the table celula
. I’ve seen other examples in ONLY, but I saw nothing to help me.
There’s something strange here. You want to do it.
left join
of the entitycelula
and you’re wearing azonacelula
– CesarMiguel
fixed, and it already works, I was making a
WHERE
for an id that was not null. happens.– Andre