Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the max number of table for a UNION
Message
 
 
To
26/08/2001 22:51:22
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00549324
Message ID:
00549329
Views:
19
There's a limit of nine UNIONs in a single query, according to the Hacker's Guide™ to Visual FoxPro® 6.0. To get around this limit split your select in two
SELECT * FROM csrOpenSum ;
UNION ;
SELECT * FROM csrInvoiceSum ;
INTO CURSOR crsTemp1

SELECT * FROM crsTemp1 ;
UNION ;
SELECT * FROM csrTransferInSum ;
UNION ;
SELECT * FROM csrTransferOutSum ;
UNION ;
SELECT * FROM csrHisRunOutSum ;
UNION ;
SELECT * FROM csrLogFileLPSum ;
UNION ;
SELECT * FROM csrAdjAddSum ;
UNION ;
SELECT * FROM csrAdjMinusSum ;
UNION ;
SELECT * FROM csrSalesSum ;
UNION ;
SELECT * FROM csrReturnSum ;
UNION ;
SELECT * FROM csrCNSum ;
INTO CURSOR csrTotalSum
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform