按条款划分

时间:2011-08-11 09:13:27

标签: 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

0 个答案:

没有答案