Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need an expression...
Message
De
28/06/2000 23:20:50
 
 
À
28/06/2000 23:19:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00386288
Message ID:
00386296
Vues:
15
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform