I've got a very simple question, I hope.
I have a table MYTABLE like this:
FIELD1 FIELD2 FREQ
A1 B 10
A1 C 20
A1 D 5
A2 X 7
A2 Y 12
...
and I want to get something like this:
enter code here
FIELD1 FIELD2
A1 C
A2 Y
that is I want to get for every distinct FIELD1 the row having the max(FREQ) but also with its FIELD2 value
Oracle 10g
Thanks in advance!
Mark