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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to link when you dont have a unique key to use?

I am trying to link the attached tables (unsuccessfully).   Refer attached for details.  No matter what i do i receive the following error...

SQL##f - SqlState: 42P01, ErrorCode: 7, ErrorMsg: ERROR: relation "team" does not exist;

Error while executing the query

SQL

SELECT * FROM team

I know its to do with the %TeamKey but i don't have any other field in the Team Table to use.

Any assistance appreciated.  Any documentation that could help me better understand this even great.

1 Solution

Accepted Solutions
Digvijay_Singh

Good thing is your user table has team ID field. If you can keep same name lets say Team ID in both user table and team table while loading using 'as' keyword, you will have association automatically by virtue of Qlikview association engine. Not much understood from contractor table though. If that needs to be associated, we need some link field with other tables as we have team id common in other tables.

View solution in original post

3 Replies
SreeniJD
Specialist
Specialist

Hi Laura,

In general, if we don't have primary key or primary key is violating then we can create surrogate key or we can even concatenate two tables and can create a composite primary key  to link between tables.

If possible, please share with me the sample data, I will create a small poc and will then share with you.

Happy to help!

Sreeni

Digvijay_Singh

Good thing is your user table has team ID field. If you can keep same name lets say Team ID in both user table and team table while loading using 'as' keyword, you will have association automatically by virtue of Qlikview association engine. Not much understood from contractor table though. If that needs to be associated, we need some link field with other tables as we have team id common in other tables.

vikasmahajan

Hi,

As Sreeni said you to create surrogate key using auto number function in Qlikview and link tables.

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.