Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teste Westwing Suporte TI #49

Open
Andrejr117 opened this issue Nov 12, 2023 · 0 comments
Open

Teste Westwing Suporte TI #49

Andrejr117 opened this issue Nov 12, 2023 · 0 comments

Comments

@Andrejr117
Copy link

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant