Hi there.
I'm having a problem updating a field for everyone in one of my tables. The query I have so far is:
UPDATE EmpBen LEFT JOIN Eml ON EmpBen.Emp= Eml.Emp
Set EmpCov=(Case when Eml.AnnlFrzSal>=50000 then (35000+(Eml.AnnlFrzSal-50000)*.50) Else Eml.AnnlFrzSal*.70 End)
Where EmpBen.Ben='BasicLTD 07' AND Eml.EmlEfdDt Is Null
The issue seems to be how to join a table in an Update Statement.
Any help would be much appreciated.
Thanks.
I'm having a problem updating a field for everyone in one of my tables. The query I have so far is:
UPDATE EmpBen LEFT JOIN Eml ON EmpBen.Emp= Eml.Emp
Set EmpCov=(Case when Eml.AnnlFrzSal>=50000 then (35000+(Eml.AnnlFrzSal-50000)*.50) Else Eml.AnnlFrzSal*.70 End)
Where EmpBen.Ben='BasicLTD 07' AND Eml.EmlEfdDt Is Null
The issue seems to be how to join a table in an Update Statement.
Any help would be much appreciated.
Thanks.