Falta pouco!

0 dias

0 horas

0 min

0 seg

0
respostas

Faça como eu fiz: ranking de clientes por empréstimos ativos

SELECT tc.nome
FROM TabelaClientes tc
where(SELECT status from TabelaEmprestimo te
      where te.id_cliente = tc.id_cliente
      and status = 1);