toddsalcedo
Programmer
I'm trying to update a column from one table to another, but I can't get it to work. Below is the query I am using and the associated error message. Do you know of a different way to write this that might work?
SELECT * FROM tbl_issues_old, tbl_issues
UPDATE tbl_issues
SET tbl_issues.pm_name = tbl_issues_old.PMB_ASSIGNEDTO
WHERE tbl_issues.autoid = tbl_issues_old.autoid
Server: Msg 107, Level 16, State 3, Line 1
The column prefix 'tbl_issues_old' does not match with a table name or alias name used in the query.
SELECT * FROM tbl_issues_old, tbl_issues
UPDATE tbl_issues
SET tbl_issues.pm_name = tbl_issues_old.PMB_ASSIGNEDTO
WHERE tbl_issues.autoid = tbl_issues_old.autoid
Server: Msg 107, Level 16, State 3, Line 1
The column prefix 'tbl_issues_old' does not match with a table name or alias name used in the query.