正文

SQL 考试,大家踊跃参加

(2010-04-13 17:25:19) 下一个
a table
3 columns
acccountID, recordDate, price
how to get the latest price(max recordDate) for each account ID?
[ 打印 ]
阅读 ()评论 (5)
评论
balancedview 回复 悄悄话 select top 1 acccountID, recordDate, price from table order by recordDate desc;
登录后才可评论.