K
Kev
I am not a SQL expert by any stretch of the imagination, so any help is
appreciated. I have a simple problem, I think. I have a dataset that
consists of fields "Item", "Suffix", and "Length". I need to get a
resultant dataset that includes the HIGHEST Suffix for each Item along
with the length for that record. for example:
(the actual database includes many other fields and tables, but I pared
it down for the example)
ITEM SUFFIX LENGTH
1 A 39.5
1 B 39.0
1 C 39.7
2 A 38.3
3 A 39.0
4 A 39.5
4 B 38.8
.... etc
I need to get a result of:
ITEM SUFFIX LENGTH
1 C 39.5
2 A 38.3
3 A 39.0
4 B 38.8
I have tried GROUP BY, MAX(), HAVING, sub queries etc. Nothing works so
far. Any help is greatly appreciated.
Thanks,
Kev
appreciated. I have a simple problem, I think. I have a dataset that
consists of fields "Item", "Suffix", and "Length". I need to get a
resultant dataset that includes the HIGHEST Suffix for each Item along
with the length for that record. for example:
(the actual database includes many other fields and tables, but I pared
it down for the example)
ITEM SUFFIX LENGTH
1 A 39.5
1 B 39.0
1 C 39.7
2 A 38.3
3 A 39.0
4 A 39.5
4 B 38.8
.... etc
I need to get a result of:
ITEM SUFFIX LENGTH
1 C 39.5
2 A 38.3
3 A 39.0
4 B 38.8
I have tried GROUP BY, MAX(), HAVING, sub queries etc. Nothing works so
far. Any help is greatly appreciated.
Thanks,
Kev