Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
maniram23
Creator II
Creator II

how to maintain relation

Hi experts,

I have two tables. there is no common fields. how to maintain the relationship between those two tables?

1 Solution

Accepted Solutions
qv_testing
Specialist II
Specialist II

Hi Ram,

If you don't have any common field.

Use Concatenate.

if you want to store 2 tables into one table.. better to use Cancatenate.

Example:

Select * from Table1

Concatenate

Select * from Table2

Otherwise, create one key Autonumber() or RowNo() in both tables. then will join based on the New Key.

View solution in original post

6 Replies
robert_mika
Master III
Master III

No common field or common field name?

Id the first use CONCATENATE

tab1:

Load col_a, col_b, col_c from ...;

Concatenate (tab1)

Load col_b, col_x, col_y from ...;

if the second change one of the filed name using AS

maniram23
Creator II
Creator II
Author

Hi Robert Mika,

Thanks for giving fast response .

there is no common field names.

vardhancse
Specialist III
Specialist III

With out common field we can not join any tables,if there is no common field try to create one field using some autonumber() in both the tables so that they will join based on the new field.

vardhancse
Specialist III
Specialist III

Hi,

Using concatenate we can do it but its not preferred because the volume of dashboard will be very huge as there is no common filed concatenation will lead to result like below

Field1   Field2

1          -

2          -

-          3

-          4

robert_mika
Master III
Master III

Use CONCATENATE..

qv_testing
Specialist II
Specialist II

Hi Ram,

If you don't have any common field.

Use Concatenate.

if you want to store 2 tables into one table.. better to use Cancatenate.

Example:

Select * from Table1

Concatenate

Select * from Table2

Otherwise, create one key Autonumber() or RowNo() in both tables. then will join based on the New Key.