soporaeternus 发表于 2011-12-19 15:13 
...
max(trading_date) as the_date_you_want
....
你的意思是在左外连接的时候,条件选成大于等于,然后在选右表的交易日时再Max一下选最大的?
我这么做过,显示错误如下:
NOTE: The execution of this query involves performing one or more Cartesian product joins that
can not be optimized.
NOTE: The query requires remerging summary statistics back with the original data.
我的版本是9.0,不知道更高的版本能否实现。