Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Mt3
Contributor III
Contributor III

Synthetic Key issue

Hi,

I am trying to join to tables on load from different sections. However, instead of  connecting two tables directly, I end up getting two synthetic tales  with synthetic keys only. 

 

Here is exemplary schema I am implementing, would be grateful for any suggestions:

Section 1:

[table1]

Load

A as "A_ID",

B as "B_ID",

C as "C_ID",

D as "D_ID"

from qvdname.qvd (qvd);

 

Section 2:

[table2]

Load

A as "A_ID",

E as "E_ID"

from qvdname1.qvd (qvd);

LEFT JOIN  ([table2])

Load

A as "A_ID",

H as "H_ID"

from qvdname2.qvd (qvd);

 

[table3]

Load

B as "B_ID",

F as "F_ID"

from qvdname3.qvd (qvd);

LEFT JOIN  ([table3])

Load

B as "B_ID",

J as "J_ID"

from qvdname5.qvd (qvd);

 

Result:

Synthetic Table 1 with  A as "A_ID"

Synthetic Table 2 with B as "B_ID"

 

Labels (1)
3 Replies
ali_hijazi
Partner - Master II
Partner - Master II

Hello

first you need to specify in the left join which table you are trying to make the left join on:
i.e. left join([table1])
load...
or left join(table2)...

after reload check which tables are linked with more than 1 columns and this identifies the synthetic key 

I can walk on water when it freezes
Mt3
Contributor III
Contributor III
Author

Thanks! I have omitted table names in the description, although they have been included in the script, sorry for that. 

ali_hijazi
Partner - Master II
Partner - Master II

I reviewed your script above and I don't see any possibility of having synthetic keys
Is what you have written is the one really in your app
cause here table1 would link to table2 via A_ID and to table3 via B_ID
so there shouldn't be a synthetic key

can you please send me screen shot of the data model viewer?

I can walk on water when it freezes