Dear MsAccess Query expert.
Suppose I have the following DataSet.
Type, Date, Price
A, 02/21/09, 1.00
A, 03/21/09, 1.15
B, 02/21/09 1.23
A, 12/21/08 1.00
A, 11/21/08 3.00
B, 03/21/09 4.00
B, 01/21/09 5.00
A, 01/21/09 6.00
B, 07/21/08 2.00
I want a new recordset that gives me the Top 3 most recent A records, and the TOP 3 most Recent B records, for a total of always only 6 records.
Can I do this in Access using the Query grid or do I have to write the SQL?
How would I write the SQL?
Thank you
Peter.
Suppose I have the following DataSet.
Type, Date, Price
A, 02/21/09, 1.00
A, 03/21/09, 1.15
B, 02/21/09 1.23
A, 12/21/08 1.00
A, 11/21/08 3.00
B, 03/21/09 4.00
B, 01/21/09 5.00
A, 01/21/09 6.00
B, 07/21/08 2.00
I want a new recordset that gives me the Top 3 most recent A records, and the TOP 3 most Recent B records, for a total of always only 6 records.
Can I do this in Access using the Query grid or do I have to write the SQL?
How would I write the SQL?
Thank you
Peter.