I have table with following 5 fields
ID, Type, Code, Value, Pos.
I have to update Value and Pos fields depending on code and type fields.
1)If two rows have same code value and type values are ADD and DELETE then update Value with A and B and Pos with 1 and 2.
if i has another two rows with same scenario then do same thing as above but the Pos values must be 3 and 4.
and so on...
I hope i explained it well.How you do it in a stored procedure.
Thanks for your help.
ID, Type, Code, Value, Pos.
I have to update Value and Pos fields depending on code and type fields.
1)If two rows have same code value and type values are ADD and DELETE then update Value with A and B and Pos with 1 and 2.
if i has another two rows with same scenario then do same thing as above but the Pos values must be 3 and 4.
and so on...
I hope i explained it well.How you do it in a stored procedure.
Thanks for your help.