Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting MIN not empty date in one select
Message
 
À
27/02/2002 14:15:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00625898
Message ID:
00625946
Vues:
10
>>>>I want to select min and max dates from some table. However, I want to select min not empty date. If all dates are empty, the resulting date should be empty, but otherwise it should be min non-empty.
>>>>

>>>
>>>select ... Where Not EMPTY(MyDate) ...
>>>
>>>:-)
>>
>>Ok, I take it as a NO. Anyway, I wrote two selects already:
>> ...
>
>Doesn't the following work?
>
>
>select min(MyDate) from MyTable where not empty(Mydate)
>
Thats what I think, but reread the bold text :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform