Results 1 to 6 of 6
May 19, 2004, 03:51 #1
- Join Date
- Apr 2003
- daejeon, South Korea
- 1 Post(s)
- 0 Thread(s)
group by numeric values in a field
I have 3 fields in myTable like the following.
data in myTable (ID) (name_class_blah_blah) (score) (1) (Jane C3 ogdsbc) (75) (2) (kate C2 ihc) (65) (3) (Tom C1 kogv) (85) (4) (Robert C3 kbgefxcg) (90) (5) (Mary C1 bgfds) (60)
target result (2) (kate C2 ihc) (65) (3) (Tom C1 kogv) (85) (4) (Robert C3 jbgefxcg) (90)
There are 2 persons in C1. they are Tom and Mary. Tom gets higher score than Mary. So Tom should be produced.
There are 1 person in C2. She is Kate. No one can get higher score than Kate.
So Kate should be produced.
There are 2 persons in C3. they are Jane and Robert.
Since Robert gets higher score than Jane, Robert should be produced.
The problem here is that the group key word comes in the middle of the values in "name_class_blah_blah" field.
Can I produce my target result with your help?
Thanks in Advance