我正在尝试在 Microsoft Access 中组合两个特殊的表格,即使在互联网上进行了大量的头脑风暴和搜索之后,我也无法这样做。
这两个表是spend
和export
Spend
+-------------+--------+-------+-------+
| Country | Metal | Month | Spend |
+-------------+--------+-------+-------+
| China | Iron | Jan | 100 |
| China | Iron | Feb | 200 |
| China | Iron | March | 300 |
| India | Iron | Jan | 400 |
| India | Copper | April | 500 |
| Spain | Zinc | June | 600 |
+-------------+--------+-------+-------+
Export
+-------------+-------+------+--------+
| Country | Metal | Year | Export |
+-------------+-------+------+--------+
| China | Iron | 2001 | 2,000 |
| India | Iron | 2002 | 4,000 |
| India | Iron | 2003 | 5,000 |
| Spain | Zinc | 2011 | 3,500 |
| Spain | Zinc | 2012 | 4,000 |
| Spain | Zinc | 2013 | 9,000 |
+-------------+-------+------+--------+
所需组合表
+-------------+--------+-------+-------+------+--------+
| Country | Metal | Month | Spend | Year | Export |
+-------------+--------+-------+-------+------+--------+
| China | Iron | Jan | 100 | 2001 | 2,000 |
| China | Iron | Feb | 200 | | |
| China | Iron | March | 300 | | |
| India | Iron | Jan | 400 | 2002 | 4,000 |
| India | Iron | | | 2003 | 5,000 |
| India | Copper | April | 500 | | |
| Spain | Zinc | June | 600 | 2011 | 3,500 |
| Spain | Zinc | | | 2012 | 4,000 |
| Spain | Zinc | | | 2013 | 9,000 |
+-------------+--------+-------+-------+------+--------+