I have a simple query designed to look up a maximum price of a range of items, and give the date of that price.
There are three fields, price, item number and date.
I am doing a MAX on the price, and a GROUP on the item number, so that gives the maximum price of that item, right?
Then I want to know the date of that price. What total would I select? If I use a GROUP on the date, I get multiple items. What I really need is 'no further selection, use the record I already chose with MAX price, and give me the date from that record.
How do I do that?
By the way, this is not for one item, but a query that will provide a max price and date for all items in the table.
Robert
There are three fields, price, item number and date.
I am doing a MAX on the price, and a GROUP on the item number, so that gives the maximum price of that item, right?
Then I want to know the date of that price. What total would I select? If I use a GROUP on the date, I get multiple items. What I really need is 'no further selection, use the record I already chose with MAX price, and give me the date from that record.
How do I do that?
By the way, this is not for one item, but a query that will provide a max price and date for all items in the table.
Robert