General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Whats wrong with my Group By?
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only