I have a table that has multiple records for each product. Each product has identical fields except for a sales field and the date of that sale. I just want the latest record.
The table looks like this:
ProductID date num_sold
1 7/21/01 7
1 7/31/01 10
2 8/10/01 6
2 8/21/01 5
I only want the records that have the latest date for each month. How do I design the query for this?
The table looks like this:
ProductID date num_sold
1 7/21/01 7
1 7/31/01 10
2 8/10/01 6
2 8/21/01 5
I only want the records that have the latest date for each month. How do I design the query for this?