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, while still GROUP BY SOME_REPEATING_FIELD.
Any help is much appreciated.
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, while still GROUP BY SOME_REPEATING_FIELD.
Any help is much appreciated.