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;
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;