sql1: Select 产品编号,max(有效日期) as 有效日期 from {产品价格} group by 产品编号
sql2: Select * from {产品价格} as a inner join (sql1) b on a.产品编号=b.产品编号 and a.有效日期=b.有效日期