Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can this be done with SQL statement
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00728373
Message ID:
00728384
Views:
13
>Hi.
>I'm wondering is there a SQL statemnt to do the following:
>
>My File has two fields:
>Flda Fldb
>---- ----
>A 100
>A 200
>A 300
>D 105
>D 107
>E 153
>E 156
>
>I want as a result:
>A 300
>D 107
>E 156
>i.e. The highest record based on the Flda field

SELECT flda, MAX(fldb) FROM MyFile GROUP BY Flda
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform