Hi,
This should have been simple, but I cant get my head round this query; can someone help me?
table A:
R1 R2 R3
a - 6 - z
d - 2 - p
a - 5 - y
g - 8 - w
d - 6 - w
I need:
R1 R2 R3
a - 6 - z
d - 6 - w
g - 8 - w
I 've allready try this query
Select R1,max(R2),R3 from a group by R1
R1 R2 R3
a - 6 - z
d - 6 - p ***THIS ISN'T CORRECT***
g - 8 - w
The problem with this query:
R1 - ok
R2 - ok
R3 - i'll get the first record the query see so this ain't the corresponding record
Can some one help me out?
Thx,
This should have been simple, but I cant get my head round this query; can someone help me?
table A:
R1 R2 R3
a - 6 - z
d - 2 - p
a - 5 - y
g - 8 - w
d - 6 - w
I need:
R1 R2 R3
a - 6 - z
d - 6 - w
g - 8 - w
I 've allready try this query
Select R1,max(R2),R3 from a group by R1
R1 R2 R3
a - 6 - z
d - 6 - p ***THIS ISN'T CORRECT***
g - 8 - w
The problem with this query:
R1 - ok
R2 - ok
R3 - i'll get the first record the query see so this ain't the corresponding record
Can some one help me out?
Thx,