I'm having some problems with a query to do the following: Pick the highest value for Field "X" and its' corresponding value in Field "Y", from a group of values in Field "X" with a given characteristic. An example follows:
Field1 FieldX FieldY
Blue 23 9
Blue 16 10
Red 12 3
Red 6 11
Red 3 8
So for Blue, it returns a value of 23 (for Field X) and 9 (for Field Y). For Red, it returns a value of 12 (for Field X) and 3 for Field Y.
I thought that I could run this using the group function, but it doesn't seem to be working.
Any suggestions would be appreciated.
JHSam
Field1 FieldX FieldY
Blue 23 9
Blue 16 10
Red 12 3
Red 6 11
Red 3 8
So for Blue, it returns a value of 23 (for Field X) and 9 (for Field Y). For Red, it returns a value of 12 (for Field X) and 3 for Field Y.
I thought that I could run this using the group function, but it doesn't seem to be working.
Any suggestions would be appreciated.
JHSam