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

Resolução - Teste MySQL #77

Open
Almeida63 opened this issue Nov 14, 2023 · 0 comments
Open

Resolução - Teste MySQL #77

Almeida63 opened this issue Nov 14, 2023 · 0 comments

Comments

@Almeida63
Copy link

SELECT
c.nome AS 'Nome do Cliente',
c.sobrenome AS 'Sobrenome do Cliente',
c.data_nascimento AS 'Data de Nascimento do Cliente',
cas.cor AS 'Cor da Casa',
b.nome AS 'Bairro',
car.modelo AS 'Modelo do Carro'
FROM
cliente c
LEFT JOIN
casa cas ON c.id_cliente = cas.fk_cliente
LEFT JOIN
bairro b ON b.id_bairro = cas.fk_bairro
LEFT JOIN
carro car ON car.fk_cliente = c.id_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