hello,
I am very new to sql server. I've been programming in oracle so I know that sql server syntax is quite different. Can you please tell me if my update statement below has the correct syntax?
Thanks in advance
UPDATE employee
SET employee.id = personnel.id
FROM employee, personnel
WHERE employee.primaryKey = personnel.foreignKey
Also, can you please tell me how to set employee.id equal to the last 2 digits of the personnel id?
Thanks,
I am very new to sql server. I've been programming in oracle so I know that sql server syntax is quite different. Can you please tell me if my update statement below has the correct syntax?
Thanks in advance
UPDATE employee
SET employee.id = personnel.id
FROM employee, personnel
WHERE employee.primaryKey = personnel.foreignKey
Also, can you please tell me how to set employee.id equal to the last 2 digits of the personnel id?
Thanks,