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: 
Not applicable

Use NoConcatenate (), still create $syn1 table...

The following two table is not the same, i try to use keywords NoConcatenate, however, the result is not my expectation. Moreover, a $syn1 table has been created. Or if i have the case as below,  i need to use QUALIFY *  to solve it??

[Table_A]:

LOAD * INLINE [

    Field1, Field2, Field3

    A, B, C

    A, B, C

    A, B, C

];

[Table_B]:

NoConcatenate

LOAD * INLINE [

    Field1, Field2, Field3

    D, D, D

    E, E, E

    F, F, F

];

Any syntax error? Pls advise

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You get a syn table because you use the noconcatenate keyword. Because both tables contain fields with the same name a synthetic key is constructed for those fields. If you don't want that and still keep the tables separate you can either rename fields or use the qualify keyword to prefix some fields with the table name. That's a kind of renaming too.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You get a syn table because you use the noconcatenate keyword. Because both tables contain fields with the same name a synthetic key is constructed for those fields. If you don't want that and still keep the tables separate you can either rename fields or use the qualify keyword to prefix some fields with the table name. That's a kind of renaming too.


talk is cheap, supply exceeds demand
er_mohit
Master II
Master II

yeah you have to use Qualify * ;on upper side

and no need of concatenate then your both table is different

if you want primary key then write

unqualify Field1;

hope it helps