Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oops! MIN & MAX in SQL commands
Message
De
12/02/2003 17:01:57
 
 
À
12/02/2003 07:48:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00752219
Message ID:
00752507
Vues:
22
Sorry... won't work...

Your select statement will choose the last record that has a higher value than 99.


SELECT IIF(nfield>99, nfield, 99) FROM ....

SELECT MAX(nField) FROM ... WHERE nField > 99

IF _TALLY = 0
nField =99
ELSE
nField = result.nfield
endif
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform