1
resposta

ALTERNATIVA EM MYSQL

VISTO QUE O MYSQL NÃO SUPORTA O USO DO FULL JOIN, É POSSÍVEL UTILIZAR A CLAUSULA "UNION" PARA REALIZAR A ATIVIDADE.

SELECT clien.nome AS nomeCliente, empst.tipo AS tipo, empst.valor AS valor
FROM tabelaClientes AS clien
LEFT JOIN tabelaEmprestimo AS empst ON clien.id_cliente = empst.id_cliente

UNION

SELECT clien.nome AS nomeCliente, empst.tipo AS tipo, empst.valor AS valor
FROM tabelaClientes AS clien
RIGHT JOIN tabelaEmprestimo AS empst ON clien.id_cliente = empst.id_cliente;

Garanta sua matrícula hoje e ganhe + 2 meses grátis

Continue sua jornada tech com ainda mais tempo para aprender e evoluir

Quero aproveitar agora
1 resposta

Muito bem, parabéns por ter chegado a essa conclusão!