Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Associated Tables

I want to make  one tables from two tables.

in document,  employee tables have one column but this just example if I want to add 3 or more column Order tables ,How can do it?

LOAD EmpID as EmployeeID ,

     EmployeeName,

   Example1,

  Example2,

FROM

[..\egitim\EndUser\Employee.xls]

(biff, embedded labels, table is Employees$);

LOAD OrderID,

     ProductID,

     Product,

     CustomerID,

     EmployeeID,

     OrderDate,

     Margin,

     Sales,

     Cost,

     Quantity,

EmployeeName,

Example1,

Example2,

FROM

[..\egitim\EndUser\Sales.xls]

(biff, embedded labels, table is Orders$);

Thanks.

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Use Join in two table definations.

try like

Load * from table1;

Join

Load * from table2;

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

8 Replies
MK_QSL
MVP
MVP

Question itself is not clear... !

Could you please provide some more information about your requirements?

Not applicable
Author

I have two tables and I know associated these tables

LOAD EmpID as EmployeeID ,

     EmployeeName,

     Example1,

     Example2,

FROM

[..\egitim\EndUser\Employee.xls]

(biff, embedded labels, table is Employees$);

LOAD OrderID,

     ProductID,

     Product,

     CustomerID,

     EmployeeID,

     OrderDate,

     Margin,

     Sales,

     Cost,

     Quantity,

    

FROM

[..\egitim\EndUser\Sales.xls]

(biff, embedded labels, table is Orders$);

These tables, I want to this style ->

LOAD OrderID,

     ProductID,

     Product,

     CustomerID,

     EmployeeID,

     OrderDate,

     Margin,

     Sales,

     Cost,

     Quantity,

*

    EmployeeName,

     Example1,

     Example2,

*

;

sunilkumarqv
Specialist II
Specialist II

Use joins :

try like below

Sales:

LOAD OrderID,

     ProductID,

     Product,

     CustomerID,

     EmployeeID,

     OrderDate,

     Margin,

     Sales,

     Cost,

     Quantity

FROM

[..\egitim\EndUser\Sales.xls]

(biff, embedded labels, table is Orders$);


Left Join(Sales)

Emp:

LOAD EmpID as EmployeeID ,

     EmployeeName

FROM

[..\egitim\EndUser\Employee.xls]

(biff, embedded labels, table is Employees$);

PrashantSangle

Hi,

Use Join in two table definations.

try like

Load * from table1;

Join

Load * from table2;

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Can I use Resident Load?

PrashantSangle

Hi,

Yes You can

but why you want???

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Hi,

Actually,I want to make one tables from other tables's column. For examle;

LOAD EmpID as EmployeeID ,

     EmployeeName,

     Example1,

     Example2,

FROM

[..\egitim\EndUser\Employee.xls]

(biff, embedded labels, table is Employees$);

LOAD OrderID,

     ProductID,

     Product,

     CustomerID,

     EmployeeID,

     OrderDate,

     Margin,

     Sales,

     Cost,

     Quantity,

   

FROM

[..\egitim\EndUser\Sales.xls]

(biff, embedded labels, table is Orders$);

New TABLE:

LOAD Product,

     CustomerID,

     EmployeeID,

     EmployeeName,

     Example1,

     Example4,--other tables

I create new tables from other tables.

Thanks you for your interes

PrashantSangle

Hi,

Ok, I got you requirement.

Yes you can acheive it through Resident Load but rename the fields to avoid unwanted Key(Synthetic key)

and close the thread if issue resolved.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂