Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oops! MIN & MAX in SQL commands
Message
From
12/02/2003 17:01:57
 
 
To
12/02/2003 07:48:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00752219
Message ID:
00752507
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform