Aleks
asked on
Update table value with join syntax
I have two tables that have a common field (to join)
Table 1: Forms
Field 1: FormName (varchar 40)
Field 2: FormDesc (varchar 255)
Table 2: FormsCatalog
Field1: FormName (varchar 40)
Field 2: FormDesc (varchar 255)
I want to join both tables b the FormName, which is the same in both. And update the table 2 field 2 with the value of table 1 field 2
Something like
Obviously the syntax is incorrect, this is what I need help with. Simply join the tables by the name and have formscatalog.description be the same as forms.description
Hope I explained myself well.
Table 1: Forms
Field 1: FormName (varchar 40)
Field 2: FormDesc (varchar 255)
Table 2: FormsCatalog
Field1: FormName (varchar 40)
Field 2: FormDesc (varchar 255)
I want to join both tables b the FormName, which is the same in both. And update the table 2 field 2 with the value of table 1 field 2
Something like
Update Formscatalog a
set a. FormDesc = b.FormDesc
where a.Formname JOINED TO b.FormName
and Forms as b
Obviously the syntax is incorrect, this is what I need help with. Simply join the tables by the name and have formscatalog.description be the same as forms.description
Hope I explained myself well.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER