Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select one from a group
Message
From
13/03/2000 16:06:50
Monte Murdock
Universal American Mortgage Company
Clearwater, Florida, United States
 
 
To
13/03/2000 14:12:50
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00345076
Message ID:
00345134
Views:
15
Try Sele Max(traintime) as TotTrain


>
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform