澳——賊, 你轉不出來才說呢

select t.acccountID, a.mDate, t.price
from table t,
(select acccountID, max(recordDate) as mDate
from table
group by acccountID) as a
where t. acccountID=a. acccountID
and t. recordDate=a.mDate
group by t.acccountID, a.mDate, t.price

請您先登陸,再發跟帖!