USE AdventureWorks GO SELECT COUNT(*) OVER(PARTITION BY NULL) AS TotalRowCount ,ROW_NUMBER() OVER (ORDER BY [TransactionID] DESC) AS [ASC_ROWNUMBER] ,[TransactionID] ,[ProductID] ,[ReferenceOrderID] ,[ReferenceOrderLineID] ,[TransactionDate] ,[TransactionType] ,[Quantity] ,[ActualCost] ,[ModifiedDate] FROM [AdventureWorks].[Production].[TransactionHistory] GO
No comments:
Post a Comment