How to convert ms-access last() function to sql server 2008 equivalent query? code is
SELECT DISTINCT Last([Title].[Number) AS Row_ID FROM [Title] HAV
Try to use LAST_VALUE(Title.Number) over (...)