Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need an expression...
Message
From
28/06/2000 23:20:50
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00386288
Message ID:
00386296
Views:
17
>>Hi all:
>> How can I find the HIGHEST or MAX value within a set of records?
>>
>>Take this for example:
>>
>>CodeNo LevelNo
>>1 1
>>1 2
>>2 1
>>1 1
>>1 3 *
>>2 1
>>2 3
>>
>>How do I locate the maximum value (3) of all CodeNo=1?
>
SELECT MAX(LevelNo) AS MaxLevelNo FROM MyTable WHERE CodeNo = 1 ;
INTO CURSOR whatever

>
>>In this example record no 5.
>>Thanks in advance
>>Ulises
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
Reply
Map
View

Click here to load this message in the networking platform