Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MIN() MAX() in SQL on multiple fields
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01617834
Message ID:
01617836
Vues:
76
This message has been marked as the solution to the initial question of the thread.
>I've possibly forgotten something trivial or learned something new today...
>
>How, in an sql statement, do you get the min value of, say, 5 values?
>
>I try something like SELECT MIN(field1,field2,field3,field4) FROM MYFILE
>
>and VFP wants to assume MIN() is aggregation of several rows....
>
>Thanks in advance.

You can not use MIN/MAX function in SQL Select. You would need to use nested IIF and re-create the logic for MIN/MAX.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform