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: 
vikasmahajan

How to create QVD from following SQL join Statement

Hii,

Experts   Can any one tell me how to create qvd from  following SQL Statement

Select Doc_Num,Doc_Type,Item_Ledger_Entry_No,B.Quantity

FROM FACT_QV_ValueEntry A

INNER JOIN FACT QV_ProductionOrder B

ON A.Doc_Num  = B.No_

WHERE A.Entry_Type = 6 AND A.[Item Ledger Entry Quantity] <> 0 AND A.[Expected Quantity] = 0

AND Item_Ledger_Entry_No IN

(SELECT MIN(Item_Ledger_Entry_No) FROM FACT_QV_ValueEntry A

INNER JOIN FACT_QV_ProductionOrder B

ON A.Doc_Num  = B.No_

WHERE A.Entry_Type = 6 AND A.[Item Ledger Entry Quantity] <> 0 AND A.[Expected Quantity] = 0

GROUP BY Doc_Num)

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
2 Replies
sivarajs
Specialist II
Specialist II

This is single table now. You can create,

Table:

your sql

store Table into Table.qvd (qvd);

Is this your expected output?

vikasmahajan
Author

I want to create qvd from sql sub query  see this clause

  Item_Ledger_Entry_No  IN ( ...) 

do you have any idea how to perform this for creation of qvd ?

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.