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.
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_numKK |
|
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 endFrom Staff_Salary_tempWhere Employee_Code = @emp_num[/code] KH |
|
|
CSK
Constraint Violating Yak Guru
489 Posts |
Posted - 2006-08-11 : 04:18:13
|
Thanks . It's Working |
|
|
|
|
|