0
respostas

Faça como eu fiz: análise de volume de empréstimos por cliente

SELECT tc.nome as Cliente , te.valor as TotalEmprestimo
from TabelaClientes as tc
join TabelaEmprestimo te  on te.id_cliente = tc.id_cliente
where valor > 10000;