In reply to Bob:
I have more than one product with the word marmite in the description and I want the most recent price for each of them.
12345, 1-8-2014, 1.23, marmite twiglets
12345, 2-8-2014, 1.25, marmite twiglets
12345, 5-8-2014, 1.20, marmite twiglets
12346, 1-8-2014, 2.23, marmite jar
12346, 3-8-2014, 2.00, marmite jar
12347, 1-8-2014, 1.93, marmite soap
12347, 3-8-2014, 1.93, marmite soap
I want three rows returned:
12345, 5-8-2014, 1.20, marmite twiglets
12346, 3-8-2014, 2.00, marmite jar
12347, 3-8-2014, 1.93, marmite soap
I think your query returns the row that has the most recent price_date that has marmite in the description.
Does that make sense?