Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select one from a group
Message
 
 
To
13/03/2000 15:17:15
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:
00345142
Views:
27
>>Sele traintime as TotTrain Where Not EMpty(traintime)
>
>First thought: "Why aren't i using that?"
>
>then i realized that i want other group totals on the rest of the fields in the group. That where clause would exclude the other records.
>
>I'm working on a nightmarishly complex string to val summation and string reconstituion, and i think it works, but it's ugly.

two selects:
First: select "everything, you want", TrainTime group by "everything, you want", TrainTime order by "everything, you want", TrainTime desc

So, you will have two records for each group, first record contains TrainTime.

Second select: select "everything, you want", TrainTime group by "everything, you want" order by "everything, you want"

Does it work?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform