Hi
I am new to FoxPro and have no previous experience in database coding. I find it very struggling :S Right now I want to take two columns with data from the same file. Multiply these without overwriting anything and save it. The column names are Sum_psigbf and Sum_psigb3. PLEASE HELP, I have been trying to do this for more than an hour and are no where closer to a solution :eek:
I am new to FoxPro and have no previous experience in database coding. I find it very struggling :S Right now I want to take two columns with data from the same file. Multiply these without overwriting anything and save it. The column names are Sum_psigbf and Sum_psigb3. PLEASE HELP, I have been trying to do this for more than an hour and are no where closer to a solution :eek:
Code:
SET SAFETY OFF
CLOSE DATABASES
DELETE FILES *.tmp RECYCLE
SET DEFAULT TO "C:\_moses\Aegon_3097558\MoSes cashflows"
USE cf_case ALIAS cf
SELECT Sum_psigbf as psigbf;
Sum_psigb3 as psigb3
FROM cf;
INTO TABLE psigbf.tmp
select psigbf, psigb3, (psigbf*psigb3) as AM from table psigbf.tmp
COPY TO AM.dbf