Hello Experts,
I have a table app.ca. I have another table app.cb. app.cb has 6 required fields. app.ca contains 5 of those 6 fields. I want the other field to simply be 1. I can not think of how to get the records recorded into app.cb. Here is what I've come up with so far. Can you help me?
I have a table app.ca. I have another table app.cb. app.cb has 6 required fields. app.ca contains 5 of those 6 fields. I want the other field to simply be 1. I can not think of how to get the records recorded into app.cb. Here is what I've come up with so far. Can you help me?
Code:
INSERT INTO APP.CB ( EIACODXA, LSACONXB, ALTLCNXB, LCNTYPXB, TASKCDCA, SUBNUMCB ) VALUES ( ( SELECT APP.CA.EIACODXA FROM APP.CA ) , ( SELECT APP.CA.LSACONXB FROM APP.CA ) , ( SELECT APP.CA.ALTLCNXB FROM APP.CA ) , ( SELECT APP.CA.LCNTYPXB FROM APP.CA ) , ( SELECT APP.CA.TASKCDCA FROM APP.CA ) , ('1') )
Comment