Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question choose the table who will be use in first in a cross join

More
20 Aug 2015 12:18 #1 by alexa
Hi,
i want in a join make a cross join, but I want a table in first but i did'nt do it. I try to use in properties on the tables , in advanced 'order', but it s not working, i try to put on the mapping my main table first and my second one but nothing work.

The code is
select ...
from table2 CROSS JOIN table 1

and i want the opposit
select ...
from table1 CROSS JOIN table 2

you can see in attachement my mapping

thank you for your help

Alexa
This attachment is hidden for guests.
Please log in or register to see it.

This message has an attachment file.
Please log in or register to see it.

More
20 Aug 2015 13:59 #2 by Cyril Dussud
Hi,

You can change this in the properties of the Join, with changing the 'Left Part' and 'Right Part' in the order you want it to be in the query.
It should resolve your problem.
More
20 Aug 2015 14:22 #3 by alexa
Hi,
no in fact the two tables are independant
One give her data in the final table and the other just help to fill one variable DAT_DONN in the final table. So I can't make left or right my join between this table tell nonsense.
So what can i do?

Thanks
More
20 Aug 2015 14:37 - 20 Aug 2015 14:44 #4 by Cyril Dussud
Sorry if I was not clear.
You have to reverse the left part and right part in the properties, but keep the cross Join Type.

For example :
Left part : table1
Right part : table2
Becomes
Left part : table2
Right part : table1

Join Type : Cross
Last edit: 20 Aug 2015 14:44 by Cyril Dussud.
More
21 Aug 2015 10:24 #5 by alexa
Hi,

Thanks it's working

Bye