Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL select mind bender #1453
Message
From
21/07/1998 18:31:31
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL select mind bender #1453
Miscellaneous
Thread ID:
00119932
Message ID:
00119932
Views:
56
OK - I had this done once and (of course) misplaced the solution. I have an A/P invoice table for example that contains invoices and payments. I want to display in a grid only those invoices that are outstanding using a view as the source. So far I've got

CREATE SQL VIEW apinquiry AS ;
select * from awards!apmaster where apmaster.invoicenum ;
in (select apmaster.vendornum, apmaster.invoicenum,
sum(apmaster.tranamount) as sumamount where sumamount <> 0
from awards!apmaster GROUP BY invoicenum ORDER BY
vendornum,invoicenum)

which gives me a 'function name missing ")"' error. What am I missing?
TIA
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Next
Reply
Map
View

Click here to load this message in the networking platform