正文

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;
登錄後才可評論.