Normally this is what I would do:
SELECT LAST(FIELD_1),
LAST(FIELD_2)
FROM TABLE_NAME
GROUP BY SOME_REPEATING_FIELD
But SQL Server does not have the LAST aggregate function. Now I also have a DATE field. I need to get the MAX(DATE) and get the FIELD_1 and FIELD_2 in its same entry...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.