假设我有 2 张桌子
销售
ProductName SellingDate ProductID
iPhone 4G 2011-05-11 1
iPhone 4S 2011-05-12 2
iPhone 4S 2011-05-13 2
iPhone 4G 2011-05-15 1
购买
ProductName BuyingDate ProductID
iPhone 4S 2011-05-09 2
iPhone 4G 2011-05-10 1
iPhone 4G 2011-05-13 1
iPhone 4G 2011-05-14 1
如何将这个日期组合成这样?
ProductName Date Status ProductID
iPhone 4G 2011-05-10 Buying 1
iPhone 4G 2011-05-11 Selling 1
iPhone 4G 2011-05-13 Buying 1
iPhone 4G 2011-05-14 Buying 1
iPhone 4G 2011-05-15 Selling 1
我不知道如何将 2 个表日期(SellingDate/BuyingDate)组合成 1 个表(日期)...
任何帮助,将不胜感激!!