sql - Concatenated where clause -
i cant sql query update database activties table. query:-
update activities set cjsid = cjsempnum.staffnumber cjsempnum activites.name = cjsempnum.surname + " " + cjsempnum.forename
i think problem clause. in activities number name stored smith john , in cjsempnum stored in 2 seperate columns surname , forename.
have tried making inner join? like...
update set
a.cjsid = cjsempnum.staffnumber cjsempnum inner join activities on a.name = cjsempnum.surname + ' ' + cjsempnum.forename
Comments
Post a Comment