Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Boa tarde!
Preciso realizar um lookup entre duas tabelas distintas, como posso fazer?
1) with the left join as you said so :
select field1, field2 from tab1;
left join
select field1, field3 from tab2;
2) with the lookup instruction
3) with the mapping instruction
T1:
LOAD * FROM qv1.qvd(qvd);
LEFT JOIN
LOAD * FROM qv2.qvd(qvd);
Se as tabelas tiverem campos com o mesmo nome, serão esses a fazer a chave.
Caso não tenham será gerado um produto cartesiano.
Clever,
Muito obrigado!