Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count for condition and total
Message
 
 
To
01/05/2009 16:48:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01397324
Message ID:
01397539
Views:
32
>>Derived tables is VFP9 only feature and I could not think of a solution not involving derived tables to get your desired result in one query. Of course, we may use two views or queries (temp cursors). But I don't see a simple way to create such a view without basing it on another view and I don't like this idea.
>
>Neither could I, s'why I asked here. I'm no stranger to views of views, so it won't be too much of a problem.

Well, can you join with the view? If yes, then create one view to get one total based on one group level and in your main view join with the first view. Same idea as derived tables I showed before but instead of using derived table use an actual view.
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