Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 error in Update

Author  Topic 

CSK
Constraint Violating Yak Guru

489 Posts

Posted - 2006-08-11 : 04:09:00
Hi, Please Say me Whats wrong in my code..?


Update A
Set Basic = Case @Element_Tmp When 'BS' Then ELE_Actual_rate ,
Set PF = Case @Element_Tmp When 'PF' Then ELE_Actual_rate
From Staff_Salary_temp
Where Employee_Code = @emp_num

KK

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-08-11 : 04:15:47
[code]Update A
Set Basic = Case @Element_Tmp When 'BS' Then ELE_Actual_rate else Basic end,
Set PF = Case @Element_Tmp When 'PF' Then ELE_Actual_rate else PF end
From Staff_Salary_temp
Where Employee_Code = @emp_num[/code]


KH

Go to Top of Page

CSK
Constraint Violating Yak Guru

489 Posts

Posted - 2006-08-11 : 04:18:13
Thanks . It's Working
Go to Top of Page
   

- Advertisement -