Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

join problem

Hi *,

my 'code'

Order:
LOAD * INLINE [
OID, Article, CID
1, 23442,1
2, 55321,2
3, 31331,2
4, 41536,3

];

Customer:
LOAD * INLINE [
CID, Name, Prename
1, Jones, Henry
2, Presley, Elvis
3, Fogerty, John
];

JTable:
Load
OID,
Article,
CID
Resident Order;

Join (JTable)
Load
CID,
Name,
Prename
Resident Customers;

//Drop Table Order;
//Drop Table Customer;

Unfortunately this isn't working. Can someone help me with this?

2 Replies
stephencredmond
Luminary Alumni
Luminary Alumni

Easier to do it this way?:


Order:
LOAD * INLINE [
OID, Article, CID
1, 23442,1
2, 55321,2
3, 31331,2
4, 41536,3
];
Join LOAD * INLINE [
CID, Name, Prename
1, Jones, Henry
2, Presley, Elvis
3, Fogerty, John
];


Regards,


Stephen

Anonymous
Not applicable
Author

Stephen's answer is quite correct. and, the simpler the script - less errors... I only want to explain why the code is "not working".
This part does not create new JTable because the field names are exactly the same as in Order table.


JTable:
Load
OID,
Article,
CID
Resident Order;

Instead it is autoconcatenated with the Order table. And, later you drop Order. an get nothing.