I have created a table having three colums GsID,ALlowance and amount
Begin if exists(select * from [dbo].[HRAllowances] where GdId=@GdId) begin
update [dbo].[HRAllowances] set
Amount=@Amount where GdId=@GdId end
end
this only works for one particular row..
i want to allow user to update amount for all rows
If you want to update all the rows than you have to remove where condition that is
where GdId=@GdIdfrom you query.Like this :-
I hope it will works!!