Full outer join of two tables
问题 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? 回答1: My answer covers two cases: P (prices) and PD (pricedates) are tables P (prices) and PD (pricedates) are arrays Here is the code: % generate some sample data price = [1;2;3;4;5]; pricedate1