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
It has no direct equivalent but can generally be achieved by combinations of ORDER BY and ROW_NUMBER(), or possibly MAX - if you provide more context and sample data then it is easier to give a definitive answer
ORDER BY
ROW_NUMBER()
MAX