Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting MIN not empty date in one select
Message
 
To
27/02/2002 14:15:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00625898
Message ID:
00625946
Views:
12
>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform