Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

composite key?


Hi all,

i have a 2 common fields between 2 tables when i reloaded i got synthetic key

to remove synthetic key  i used like

autonumberhash128(field1,filed2) as newkey

this statment i have written in 2 tables to remove synthetic key

here my question is after writing this statment do i need to comment those 2 common fields in any one table or not?

because when i go in this way like

field1 &'_"& field2 as newkey (written same line in another table also) ,we use to comment fiedls in any one table.

if we use autonumber means is it required to comment or not required?

if i did not comment whether data will come properly?

1 Solution

Accepted Solutions
Not applicable
Author

then they might have rename that field so that it may not get connect with the other table which will for synthetic keys.

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Comment them out.

jvitantonio
Luminary Alumni
Luminary Alumni

Hi,

That's correct. You either remove those fields (comment them out) or you rename them so they all have different names. This will prevent qlikview from creating synthetic keys.

JV

Anonymous
Not applicable
Author

but in my script it self

early they have created a composite key using autonumberhash128.

they have written same line in both tables ,

not at all commented  fields in any table.

got result  why?

is it possible

Not applicable
Author

then they might have rename that field so that it may not get connect with the other table which will for synthetic keys.