Fórum Mais de uma condição em LEFT JOIN #28444
08/05/2006
0
Gostaria de saber de é possível usar mais de uma condição em um LEFT JOIN e como?
Obrigado.
Wilton
Obrigado.
Wilton
Wiltonfenix
Curtir tópico
+ 0
Responder
Posts
09/05/2006
Rosterne
sim.
select TABELA1.CAMPO1, TABELA.CAMPO from TABELA1 left join TABELA on TABELA1.CAMPO1 = TABELA.CAMPO and TABELA.CAMPO2 = TABELA1.CAMPO3;
Abraço.
select TABELA1.CAMPO1, TABELA.CAMPO from TABELA1 left join TABELA on TABELA1.CAMPO1 = TABELA.CAMPO and TABELA.CAMPO2 = TABELA1.CAMPO3;
Abraço.
Responder
Gostei + 0
09/05/2006
Wiltonfenix
Obrigado...
Fiz este teste com mais calma e funcionou.
Fiz este teste com mais calma e funcionou.
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)