S
Scottie
Group,
I have the following query that I have tried using both the LAST and MAX
and yet I still cannot get it to return only the last record determined by
the date.
SELECT room_changes.RID, sys_rooms.[Room#],
Last(room_changes.RoomChangeDate) AS LastOfRoomChangeDate, sys_rooms.ID
FROM sys_rooms INNER JOIN room_changes ON sys_rooms.ID =
room_changes.[NewRoom#]
GROUP BY room_changes.RID, sys_rooms.[Room#], sys_rooms.ID;
it still returns all the room change records....I only want the last one for
each RID
I have the following query that I have tried using both the LAST and MAX
and yet I still cannot get it to return only the last record determined by
the date.
SELECT room_changes.RID, sys_rooms.[Room#],
Last(room_changes.RoomChangeDate) AS LastOfRoomChangeDate, sys_rooms.ID
FROM sys_rooms INNER JOIN room_changes ON sys_rooms.ID =
room_changes.[NewRoom#]
GROUP BY room_changes.RID, sys_rooms.[Room#], sys_rooms.ID;
it still returns all the room change records....I only want the last one for
each RID