Hi everybody,
I have the following data (Table1.dbf):
Code Line Qty
C001 1 10
C002 1 20
C003 1 30
Now, I want to consolidate the above into a table (table1_xtab.dbf) that has 1 record per Code... as such:
Line C001 C002 C003
1 10 20 30
Using Query:
SELECT Table1.line, Table1.code, SUM(Table1.qty);
FROM table1;
GROUP BY Table1.line, Table1.code;
ORDER BY Table1.line, Table1.code;
INTO TABLE SYS(2015)
DO (_GENXTAB) WITH 'table1_xtab.dbf'
It works fine in VFP but when i execute the runtime i have this error message : "File not found"
Thank you
LENGLIZ
I have the following data (Table1.dbf):
Code Line Qty
C001 1 10
C002 1 20
C003 1 30
Now, I want to consolidate the above into a table (table1_xtab.dbf) that has 1 record per Code... as such:
Line C001 C002 C003
1 10 20 30
Using Query:
SELECT Table1.line, Table1.code, SUM(Table1.qty);
FROM table1;
GROUP BY Table1.line, Table1.code;
ORDER BY Table1.line, Table1.code;
INTO TABLE SYS(2015)
DO (_GENXTAB) WITH 'table1_xtab.dbf'
It works fine in VFP but when i execute the runtime i have this error message : "File not found"
Thank you
LENGLIZ