Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return First Record Of Each Batch
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01406654
Message ID:
01406753
Views:
22
>>But have you been able to get my query to work?
>>
>>select * from (select *, row_Number() OVER (partition by BatchID Order BY ActionDate) as RowNum from returns) R  
>>where RowNum = 1
>
>
>That did it!! Thank you!!!

As my former colleague and boss would say: "FINALLY!" :))))))))))))
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform