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: 
johnnyjohn
Creator
Creator

Merging two tables using two keys

I am loading two tables from Mongo. The script is generated automatically by Qliksense


LOAD _id,
bin_idx
bins;

[bins]:
SELECT [_id],
[bin_idx],
[bins]
FROM testdb.[bins];

LOAD _id,
time_series_idx,
time_series;

[time_series]:
SELECT [_id],
[time_series_idx],
[time_series]
FROM testdb.[time_series];

How can I put [time_series] and [bins] into one table, so that the time_series and bins are on the same line if the [_id] is the same in both table and time_series_idx and bin_idx are the same?

 

Labels (2)
1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

just choose the right join based on your data/need

e.g. 

left join (bins)

LOAD _id,
time_series_idx,
time_series;

[time_series]:
SELECT [_id],
[time_series_idx],
[time_series]
FROM testdb.[time_series];

 

https://community.qlik.com/t5/QlikView-Creating-Analytics/Understanding-Join-Keep-and-Concatenate/td...

View solution in original post

1 Reply
dplr-rn
Partner - Master III
Partner - Master III

just choose the right join based on your data/need

e.g. 

left join (bins)

LOAD _id,
time_series_idx,
time_series;

[time_series]:
SELECT [_id],
[time_series_idx],
[time_series]
FROM testdb.[time_series];

 

https://community.qlik.com/t5/QlikView-Creating-Analytics/Understanding-Join-Keep-and-Concatenate/td...