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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help linking columns together for 2 tables

I am trying to form a relationship for 2 tables OrderH and OrderD for columns OURSO, Customer Number, and Invoice Date.

How should my load script look like to do this?

Labels (1)
1 Solution

Accepted Solutions
agustinbobba
Partner - Creator
Partner - Creator

Hi Sajid,

Something like that?

OrderH:

Load

  OURSO &'-'& [Customer Number] &'-'& [Invoice Date] AS Key,

  Field1,

  Field2,

  Field3

From OrderH ;

OrderD:

Load

  OURSO &'-'& [Customer Number] &'-'& [Invoice Date] AS Key,

  Field4,

  Field5,

  Field6

From OrderD;

Best Regards,

Agustín

View solution in original post

6 Replies
sunny_talwar

Do you want explicitly join them into one table?

agustinbobba
Partner - Creator
Partner - Creator

Hi Sajid,

Something like that?

OrderH:

Load

  OURSO &'-'& [Customer Number] &'-'& [Invoice Date] AS Key,

  Field1,

  Field2,

  Field3

From OrderH ;

OrderD:

Load

  OURSO &'-'& [Customer Number] &'-'& [Invoice Date] AS Key,

  Field4,

  Field5,

  Field6

From OrderD;

Best Regards,

Agustín

Chanty4u
MVP
MVP

chk dis aswell

Generic keys

avinashelite

if you have many columns to be combined across 2 tables you could use JOIN , if you want to link the 2 tables using limited set of keys then you can form a composite a key ..

provide a sample data set that will help us to suggest  better 

vikasmahajan

PFA document

HTH

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.
Not applicable
Author

Hey guys I figured it out! Thanks a bunch for your help!