Hello,
I have following table:
product| ordered_by | date
n1 | A | 2006-01-01
n1 | A | 2006-02-01
n1 | D | 2006-03-01
n1 | B | 2006-05-01
n2 | B | 2006-01-01
n2 | C | 2006-04-01
....
As a result I only want one set per product with the latest "ordered_by".
In this example:
n1, B and
n2, C
So far I solved it within the executing program but I was wondering if there
is an efficient query to do the same.
Thanks,
James