Falta pouco!

0 dias

0 horas

0 min

0 seg

0
respostas

Faça como eu fiz: Calculando o valor total de empréstimos por cidade

SELECT tc.cidade, te.valor
from TabelaClientes tc
join TabelaEmprestimo te on te.id_cliente = tc.id_cliente
where (select SUM(VALOR) FROM  TabelaEmprestimo);