Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
sridhar_sigired
Creator
Creator

Joining the records

Hi,

As i am new to qlikview, i have basic question about joins..

 

Table A
Joining field
1
2
3
4
5
6
7

 

Table B
Joining field
7
8

9

 

Output table should be
Joining field
1
2
3
4
5
6

Which kind of join i can use to get this output? or any function?

Labels (1)
14 Replies
neha_shirsath
Specialist
Specialist

Hi,

Try below code-

TableB:

LOAD * Inline [

Joining field

7

8

9

];

TableA:

LOAD [Joining field] as test Inline [

Joining field

1

2

3

4

5

6

7

];

NoConcatenate

TableAB:

Load test as final Resident TableA

Where not Exists([Joining field],test);

tyagishaila
Specialist
Specialist

TableB:

LOAD * Inline [

JoiningField

7

8

9

];

NoConcatenate

TableA:

LOAD * Inline [

JoiningField

1

2

3

4

5

6

7

]where Not Exists(JoiningField) ;

DROP Table TableB;

Not applicable

Hi,

then try the load distinct

thanks,

muthukumar77
Partner - Creator III
Partner - Creator III

So Try like this,

T1Temp:

LOAD F1 as F1Temp;

LOAD * INLINE [

    F1

    1

2

3

3

3

4

5

6

7

];

Inner Join(T1Temp)

LOAD F1 as F1Temp;

LOAD * INLINE [

    F1

   3

3

7

8

];

Concatenate(T1Temp)

LOAD F1 as F1Temp;

LOAD * INLINE [

    F1

   3

3

7

8

] Where Not Exists(F1Temp,F1);

Final:

LOAD * INLINE [

    F1

   1

2

3

3

3

4

5

6

7

] Where not Exists(F1Temp,F1);

Concatenate(Final)

LOAD * INLINE [

    F1

    3

3

7

8

]Where not Exists(F1Temp,F1);

DROP Table T1Temp;

Muthukumar Pandiyan
neha_shirsath
Specialist
Specialist

Hi,

Please find attached file.

Hope this will help you.

Thanks,

Neha