You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
c.nome AS Nome,
c.sobrenome AS Sobrenome,
ca.cor AS Casa_Cor,
b.nome AS Bairro,
COALESCE(cr.modelo, 'Nenhum carro') AS Carro
FROM
cliente c
JOIN
casa ca ON c.id_cliente = ca.fk_cliente
JOIN
bairro b ON ca.fk_bairro = b.id_bairro
LEFT JOIN
carro cr ON c.id_cliente = cr.fk_cliente;
The text was updated successfully, but these errors were encountered:
SELECT
c.nome AS Nome,
c.sobrenome AS Sobrenome,
ca.cor AS Casa_Cor,
b.nome AS Bairro,
COALESCE(cr.modelo, 'Nenhum carro') AS Carro
FROM
cliente c
JOIN
casa ca ON c.id_cliente = ca.fk_cliente
JOIN
bairro b ON ca.fk_bairro = b.id_bairro
LEFT JOIN
carro cr ON c.id_cliente = cr.fk_cliente;
The text was updated successfully, but these errors were encountered: