select 产品名称,产品类型,产品金额,y.产品期限,expr1001 as 产品收益 from (select 产品期限,max(产品收益) from (select * from [sheet1$] where 产品类型&产品金额="固定型5") group by 产品期限)y,(select distinct * from [sheet1$] where 产品类型&产品金额="固定型5")x where x.产品期限+产品收益=y.产品期限+expr1001
这段代码能实现我的要求不帮我看下呢,我没看懂