Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
g_larosa
Contributor
Contributor

retrieve data from multiple tables without

I have the following tables on Data Manager:

TABLE A  
NAMEFIELD1FIELD2
a  
b  
a  

 

TABLE B  
NAMEFIELD1FIELD2
a3x
b2x
c4x
a3x
a3x

 

and I need to make App with a table C like this:

TABLE C   
NAMEA.FIELD1A.FIELD2B.FIELD1
axx3
bxx2
cxx4

 

when B.FIELD1 is the first a.name occurency on table B. How can I do it without Associations ?

 

BR

Giuseppe

Labels (1)
2 Replies
Gysbert_Wassenaar

Join the tables:

TableA:
LOAD NAME, FIELD1 as A.FIELD1, FIELD2 as A.FIELD2 FROM source_table_a;

LEFT JOIN (TableA)

LOAD NAME, FIELD1 as B.FIELD1 FROM source_table_b;

talk is cheap, supply exceeds demand
g_larosa
Contributor
Contributor
Author

Hi ,

it doesn't work, maybe because it's a many to many association

br
Giuseppe