I have two tables, say, price (5 rows, 1 column) and pricedate (6 rows, 1 column), they don't have anything in common. I want to obtain full outer join, so that my new table ABC has 30 rows, basically, every row in pricedate has all prices.
How to do that? Can I use full outer join or something else?
My answer covers two cases:
P
(prices) andPD
(pricedates) are tablesP
(prices) andPD
(pricedates) are arraysHere is the code:
It is possible to write it in a single line to to eliminate the
TMP
-variable.For data of type
table
:For data of type
array
:I admit, that the single line looks quite cryptic.