I am confused about how to copy a column from one table to another table using where. I wrote SQL query but it says transaction lock time exceeded or query returns more than one row.
using mysql
Basically,
I have:
Table 1: Results BuildID platform_to_insert Table 2: build BuildID correct_platform update results set results.platform_to_insert = (select correct_platform from build where results.BuildID = build.BuildID)
Add index columns in both tables then merge the tables using the two index columns. or if the data source is excel you can copy from excel and paste into your table in power query.
To copy from one column to another, you can use INSERT INTO SELECT statement.
I do not believe you need a sub query.
UPDATE results, build SET results.platform_to_insert = build.correct_platform WHERE results.BuildID = build.BuildID
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With