Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ariel_klien
Specialist
Specialist

Help With Join Qvd

Hello all,
I  need help with Join 2 QVD:
Qvd1:
Field1Field2Field3
1A11
2B22
3C
4D
Qvd2:
Field1Field2Field3
1A11
3C33
4D44
i need that the join tables will show:
Field1Field2
1A11
2B22
3C33
4D44
i tried:

LOAD    Fieild1
              Fieild2,

              Fieild3
FROM qvd1.qvd (qvd);


left Join

LOAD    Fieild1
              Fieild2,

              Fieild3

FROM qvd2.qvd (qvd);

but it duplicate the records (2 raws for line 3 & 2 raws for line 4)
any idea?
Ariel
1 Solution

Accepted Solutions
ariel_klien
Specialist
Specialist
Author

Hi,

I change it and i Changed the order of the QVDs..

Key:

LOAD Deposit_Request_Key,

          Account__c,

          Fund_Key

FROM 2.qvd (qvd);

Concatenate


LOAD Deposit_Request_Key,

          Account__c,

          Fund_Key

FROM  1.qvd (qvd) Where not exists(Deposit_Request_Key) ;

Now it is working fine

Thanks

Ariel

View solution in original post

6 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

     Try this.

LOAD    Fieild1
              Fieild2,

              Fieild3
FROM qvd1.qvd (qvd);


left Join

LOAD    Fieild1
              Fieild2,

              Fieild3


FROM qvd2.qvd (qvd) where not exists(Fieild1,Fieild1);

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
ariel_klien
Specialist
Specialist
Author

Hi Kaushik

Thank for you Answer

this is my real script - I tried your suggestion but it didn't work.

Key:

LOAD Deposit_Request_Key,

          Account__c,

          Fund_Key

FROM  1.qvd (qvd);

left Join

LOAD Deposit_Request_Key,

          Account__c,

          Fund_Key

FROM 2.qvd (qvd) Where not exists(Fund_Key) ;

Any Idea?

Ariel

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

       Try below script.

Key:

LOAD Distinct  Deposit_Request_Key,

          Account__c,

          Fund_Key

FROM  1.qvd (qvd);

Concatenate

LOAD Distinct Deposit_Request_Key,

          Account__c,

          Fund_Key

FROM 2.qvd (qvd) Where not exists(Fund_Key) ;

Regards,

kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
ariel_klien
Specialist
Specialist
Author

Still the same result.

not working.

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You must change the Fund_Key to Deposit_Request_Key.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
ariel_klien
Specialist
Specialist
Author

Hi,

I change it and i Changed the order of the QVDs..

Key:

LOAD Deposit_Request_Key,

          Account__c,

          Fund_Key

FROM 2.qvd (qvd);

Concatenate


LOAD Deposit_Request_Key,

          Account__c,

          Fund_Key

FROM  1.qvd (qvd) Where not exists(Deposit_Request_Key) ;

Now it is working fine

Thanks

Ariel