G Guest Feb 7, 2006 #1 I have a multi-group of records and would like to find the "last" entered in each group based on a date.
I have a multi-group of records and would like to find the "last" entered in each group based on a date.
G Guest Feb 7, 2006 #2 Try something like SELECT [M1].* FROM [TableName] AS M1 WHERE M1.[DateFieldName] In (SELECT Top 1 M2.[DateFieldName] FROM [TableName] as M2 WHERE M2.[group] =M1.[group] ORDER BY M2.[DateFieldName] Desc)
Try something like SELECT [M1].* FROM [TableName] AS M1 WHERE M1.[DateFieldName] In (SELECT Top 1 M2.[DateFieldName] FROM [TableName] as M2 WHERE M2.[group] =M1.[group] ORDER BY M2.[DateFieldName] Desc)