G
Gary B
I am still having trouble with this...
OrderPriKey, CustForeignKey, OrderInfo
I want a query that will return just the most recent entry for each
CustForeignKey
The OrderPriKey is AutoInc, so the larger the number, the more
recent the entry.
OrderPriKey, CustForeignKey, OrderInfo
1, 1, Carrots
2, 1, Butter
3, 2, Onions
4, 2, Salt
5, 2, Pepper
6, 3, grapes
7, 3, milk
The proper result would be:
2, 1, Butter
5, 2, Pepper
7, 3, milk
Thank you!
OrderPriKey, CustForeignKey, OrderInfo
I want a query that will return just the most recent entry for each
CustForeignKey
The OrderPriKey is AutoInc, so the larger the number, the more
recent the entry.
OrderPriKey, CustForeignKey, OrderInfo
1, 1, Carrots
2, 1, Butter
3, 2, Onions
4, 2, Salt
5, 2, Pepper
6, 3, grapes
7, 3, milk
The proper result would be:
2, 1, Butter
5, 2, Pepper
7, 3, milk
Thank you!