Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select one from a group
Message
From
13/03/2000 14:12:50
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Select one from a group
Miscellaneous
Thread ID:
00345076
Message ID:
00345076
Views:
70
WorkDate / TrainTime
03/06/00
03/07/00   4:00
03/08/00
03/09/00
What is the syntax to select the "4:00" as the total training time for the days 3/6 - 3/9? (assumes only one value in list, else blank)

Sele iif(!empty(traintime),traintime,space(4)) as TotTrain

arbitrarily grabs the first record, evaluates the iif and likely stores the wrong value to TotTrain. This field is character, so sum() is not available on this field without a lot of string manipulation.

Is there an easy way to do this?
Next
Reply
Map
View

Click here to load this message in the networking platform