Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL-Select Bug?
Message
From
08/12/2000 17:26:13
 
 
To
08/12/2000 15:50:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00450933
Message ID:
00451021
Views:
29
>>I think you'd have to do something like this:
>>
>>select customer, sum(invoices) from ;
>>(select Customer, count(InvNum) as Invoices;
>> from ActiveInvoices;
>> group by Customer;
>>union select Customer, count(InvNum) as Invoices;
>> from HistInvoices;
>> group by Customer;
>> order by Customer)
>>group by customer
>
>That type of query is not supported in VFP. It would be cool if it did, though.
>What would that work in? I tried it in SQL 7 and it didn't work either.

You're right, it doesn't appear to be supported in SQL 7. My apologies for the misinformation. Looks the best (or only) way to do this would be in two passes.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Reply
Map
View

Click here to load this message in the networking platform