标签: tsql
可能重复: Use Partition in SQL
我的查询有问题。这是查询:
SELECT UserID ,MAX(UserName) as UserName ,MAX(TransactionTime) as TransactionTime ,MAX(LastAction) as LastAction FROM UserActivities WHERE OrganizationID = 26465 GROUP BY UserID