Below is the query using from clause to update table records :
update Employee
set Deptname = cc.Deptname
FROM Employee dd
inner join Department cc on cc.DeptId = dd.DeptId
where dd.salary is not null
update Employee
set Deptname = cc.Deptname
FROM Employee dd
inner join Department cc on cc.DeptId = dd.DeptId
where dd.salary is not null
No comments:
Post a Comment