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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Inner Join issues

I am a new QV user and have the following question.

I have following 2 QVDs. I did inner join and stored it in the table.

The first QVD has for example 200 rows and 2nd has 100 rows. I need to get the common records from the 2 QVDs. I did the inner join as in the following. The result set get me 100 or less records. right? Am I doing this right?

SalesSubSet:

LOAD

DivDist,

DivItem,

Date,

Sum(ShipQty) as DistShipQty

FROM $(MBAQVDMaster)DF.qvd(qvd)

Group by DivDist, DivItem, Date;

Inner Join

LOAD

DivDist,

DivItem,

Date,

Sum(Qty) as MBAShippedQty

FROM $(MBAQVDMaster)MBAQ.qvd(qvd)

Group by DivDist, DivItem, Date;

STORE SalesSubSet INTO $(MBAQVDMaster)MacSubSet.qvd;

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Try this, note change on the Inner Join part.

SalesSubSet:

LOAD

DivDist,

DivItem,

Date,

Sum(ShipQty) as DistShipQty

FROM $(MBAQVDMaster)DF.qvd(qvd)

Group by DivDist, DivItem, Date;

Inner Join (SalesSubSet)

LOAD

DivDist,

DivItem,

Date,

Sum(Qty) as MBAShippedQty

FROM $(MBAQVDMaster)MBAQ.qvd(qvd)

Group by DivDist, DivItem, Date;

STORE SalesSubSet INTO $(MBAQVDMaster)MacSubSet.qvd;

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Try this, note change on the Inner Join part.

SalesSubSet:

LOAD

DivDist,

DivItem,

Date,

Sum(ShipQty) as DistShipQty

FROM $(MBAQVDMaster)DF.qvd(qvd)

Group by DivDist, DivItem, Date;

Inner Join (SalesSubSet)

LOAD

DivDist,

DivItem,

Date,

Sum(Qty) as MBAShippedQty

FROM $(MBAQVDMaster)MBAQ.qvd(qvd)

Group by DivDist, DivItem, Date;

STORE SalesSubSet INTO $(MBAQVDMaster)MacSubSet.qvd;

Not applicable
Author

Thanks Rodrick. I will try this and will get back to you.