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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
adamgaox
Creator
Creator

Interval Match?Synethic key

Hi All,

Thanks in advance,

I want to generate two tables in QlikView with the relationship in following pictures,

what should I do in script?

arrow.PNG.png

Labels (1)
1 Solution

Accepted Solutions
sujeetsingh
Master III
Master III

The syn key and table is not visible as there are two modes of Table viewer data bodel

1- Internal Table Viewer

2- Source table viewer

What you are seeing in your pic is Source table viewer

View solution in original post

10 Replies
sujeetsingh
Master III
Master III

Disintegrate the data in two tables and keep the Fields name common on which you want to join.

sujeetsingh
Master III
Master III

When there will be more that one key then there will be a sync key and hence there will be a sync table too

sushil353
Master II
Master II

Hi,

you can make a composite key in two table using your common fields and then use them to join..

adamgaox
Creator
Creator
Author

Does the relationship have limitation to dataset?I can't understand how it works.Better put some scripts and data.Thanks.Su

adamgaox
Creator
Creator
Author

Thanks Kumar,

it's a good way to solve the composite key,but I want to know how can I generate a relationship between that two tables,because we usually see a syn table generated by QlikView.The picture doesn't.

sujeetsingh
Master III
Master III

The syn key and table is not visible as there are two modes of Table viewer data bodel

1- Internal Table Viewer

2- Source table viewer

What you are seeing in your pic is Source table viewer

sujeetsingh
Master III
Master III

See this sample for more details

mjm
Employee
Employee

Hello,

From my understanding you want to generate these two tables but have them linked by two fields identical in both tables.This will generate a synthetic key table.

With synthetic keys it is advisable to avoid these by renaming unnecessary linked fields. Synthetic keys can cause inaccurate data and bad performance in the applications. You should only have tables linked by one unique field.

Please mark this as answered and complete if this is helpful.

marcus_malinow
Partner - Specialist III
Partner - Specialist III

You could use a LEFT OUTER JOIN to join your interval match table on to your main data table, and then drop your interval match table.

Though it's worth pointing out that this is only appropriate where you are sure your data records only match to one interval, otherwise you'll end up duplicating data.