我正在尝试使用如下所示的事务表和历史表运行 SQL 查询:
历史表:
Active Date Inactive Date Attribute CustID
1/1/2013 1/15/2013 Blue A
1/15/2013 1/30/2013 Green A
交易表:
Transaction Date CustID
1/12/2013 A
1/28/2013 A
And I would want to return
结果:
Transaction Date CustID Attribute
1/12/2013 A Blue
1/28/2013 A Green
任何帮助,将不胜感激 !