In Access 2000, if I have a Totals type query of the form
SELECT Table1.ObjectId, Max(Table2.FinishDate) AS PrevFinishDate
FROM Table1 INNER JOIN Table2 ON Table1.ObjectId = Table2.ObjectId
GROUP BY Table1.ObjectId;
Let's say the above query outputs the following results:
ObjectId PrevFinishDate
99 17/Jan/2003
105 24/Jan/2003
106 02/Feb/2003
247 09/Feb/2003
If Table2 (from which PrevFinishDate is obtained) also contains a field called "StartDate". How can I obtain the StartDate for each of the instances returned by the query above?
Can it be achieved within the same query?
SELECT Table1.ObjectId, Max(Table2.FinishDate) AS PrevFinishDate
FROM Table1 INNER JOIN Table2 ON Table1.ObjectId = Table2.ObjectId
GROUP BY Table1.ObjectId;
Let's say the above query outputs the following results:
ObjectId PrevFinishDate
99 17/Jan/2003
105 24/Jan/2003
106 02/Feb/2003
247 09/Feb/2003
If Table2 (from which PrevFinishDate is obtained) also contains a field called "StartDate". How can I obtain the StartDate for each of the instances returned by the query above?
Can it be achieved within the same query?