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

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -