Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subqueries as a field expression?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Subqueries as a field expression?
Miscellaneous
Thread ID:
00200658
Message ID:
00200658
Views:
32
Is there a way to use a subquery as a field expression in VFP5?
ex:
select CompanyName, (select sum(cost) from orders where custid = company.custid and cType = 'fruit') as TotalFruit, (select sum(cost) from orders where custid = company.custid and cType = 'beverage') as TotalBeverage from company order by CompanyName
Derek Agar
Acctware Business Systems
derekagar@acctware.com
ICQ: 42332100

***********************
When in trouble call 911

He that dwelleth in the secret place
of the most High shall abide under
the shadow of the Almighty.
Psalm 91:1
***********************
Next
Reply
Map
View

Click here to load this message in the networking platform