Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Whats wrong with my Group By?
Message
From
29/06/2005 22:07:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Whats wrong with my Group By?
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01027572
Message ID:
01027572
Views:
55
I just can't seem to figure out what I am missing. Any suggestions?


lcDirectory = "C:\AMP\SIS1\"
tcCursor = "Report"

SELECT fchkno,SUM(famt) AS Check_Amt,;
fchkacc,;
fchkdate,;
fcompany,;
fvendno,;
finvnum;
FROM (lcDirectory + 'APCHK01') ;
UNION ALL;
SELECT fchkno,SUM(famt) AS Check_Amt,;
fchkacc,;
fchkdate,;
fcompany,;
fvendno,;
finvnum;
FROM (lcDirectory + 'APCHK01H') ;
group BY 1;
into cursor tcCursor
Next
Reply
Map
View

Click here to load this message in the networking platform