Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for the oldest non-blank date
Message
De
19/05/2005 10:56:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000
Database:
Visual FoxPro
Divers
Thread ID:
01015389
Message ID:
01015826
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
>Hello Fabio,
>
>>A optimized version:
>
>SELECT AreaFK, StationFK, CrewFK, ;
>>	MIN(EVL(nextminor,{^9999/12/31})) AS NextMinor, ;
>>	MIN(EVL(nextmajor,{^9999/12/31})) AS NextMajor, ;
>>	.F. AS doMinGroup, .F. AS doMajGroup ;
>>	FROM premaint  GROUP BY AreaFK, StationFK, CrewFK ;
>>	INTO TABLE maintdue

>I think that you meant NVL() instead of EVL(). I tested NVL() and found that for an empty table.datefield it always returns the empty table.datefield and not the constant date supplied in the second parameter.
>

Sorry, EVL() is a VFP8 function.

<snip>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform