If I have a SQL statement that goes something like:
SELECT afield, SUM ([bfield] * [cfield]) AS aTotal FROM sometable
can I have an Insert statement that goes:
INSERT INTO someothertable (aTotal AS dfield)
What I really want to do is perform some operations on aTotal before inserting into the second table. Can I do this as part of the INSERT statement?
SELECT afield, SUM ([bfield] * [cfield]) AS aTotal FROM sometable
can I have an Insert statement that goes:
INSERT INTO someothertable (aTotal AS dfield)
What I really want to do is perform some operations on aTotal before inserting into the second table. Can I do this as part of the INSERT statement?
Comment