Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
cbsbrasil
Contributor
Contributor

Joins entre tabelas

 

Preciso gerar um QVTable, considerando somente os itens em azul do Table 1 e Table 2.

Table 1
AB
1aa
2cc
3ee

 

Table 2
AB
1zz
2ww
5xx
7yy

 

QVTable
AB
1aa
2cc
3ee
5xx
7yy

 

Table 3
BC
aayyyy
ccuuuu
eemmm
xxiiii
yyooo

Labels (1)
1 Solution

Accepted Solutions
cbsbrasil
Contributor
Contributor
Author

Segue o LOAD finalizado:

Table1:   

LOAD * INLINE [

    A, B

    1, aa

    2, cc

    3, ee

];

Concatenate

Table2:

LOAD * INLINE [

    A, B

    1, zz

    2, ww

    5, xx

    7, yy

]

Where not Exists (A);

 

Join 

  

Table3:

LOAD * INLINE [

B, C

aa, yyyy

cc, uuuu

ee, mmmm

xx, iiii

yy, ooo

];

Obrigado hudsof@gmail.com e lucianosv@ig.com.br

View solution in original post

3 Replies
lucianosv
Specialist
Specialist

Vc lê a tabela 1 e faz um concatenate usando where not exists campo A

Enviado do meu iPhone

Em 24/04/2015, às 17:48, CLEBER BRAGA SILVA <qcwebmaster@qlikview.com> escreveu:

Qlik Community

Joins entre tabelas

criado por CLEBER BRAGA SILVA em Qlik Brasil - Visualize a discussão completa

Preciso gerar um QVTable, considerando somente os itens em azul do Table 1 e Table 2.

Table 1

A B

1 aa

2 cc

3 ee

Table 2

A B

1 zz

2 ww

5 xx

7 yy

QVTable

A B

1 aa

2 cc

3 ee

5 xx

7 yy

Table 3

B C

aa yyyy

cc uuuu

ee mmm

xx iiii

yy ooo

Responda a esta mensagem respondendo a este e-mail ou vá para a mensagem em Qlik Community

Inicie uma nova discussão em Qlik Brasil por e-mail ou em Qlik Community

Seguindo Qlik Brasil nestes fluxos: Caixa de Entrada

cbsbrasil
Contributor
Contributor
Author

Segue o LOAD finalizado:

Table1:   

LOAD * INLINE [

    A, B

    1, aa

    2, cc

    3, ee

];

Concatenate

Table2:

LOAD * INLINE [

    A, B

    1, zz

    2, ww

    5, xx

    7, yy

]

Where not Exists (A);

 

Join 

  

Table3:

LOAD * INLINE [

B, C

aa, yyyy

cc, uuuu

ee, mmmm

xx, iiii

yy, ooo

];

Obrigado hudsof@gmail.com e lucianosv@ig.com.br

nicolett_yuri

Clever, favor fechar o tópico marcando a resposta que mais te ajudou