Sql

Arti K.

asked • 07/22/22

how do I copy values from one table column to another table column

I have two tables Model and Charter.

I have to update new attributes to charter table with is CHAR_WAIT_CHG that has numeric data type with ALTER and add it. The Model table has MOD_WAIT_CHG which has numeric data type and has values $100,$50, and $75. I do not see any matching columns in both tables.

The values in MOD_WAIT_CHG should be copied into the column in Charter table. But I am having very hard time implementing it. Please help

My sql statement is

UPDATE CHARTER

SET CHAR_WAIT_CHG = MOD_WAIT_CHG FROM MODEL

WHERE CHARTER.MOD_CODE = MODEL.MOD_CODE

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.