• capn.hector (8/1/2012)


    i have a couple of things in mind but i think the OP is looking for an UPDATE statement. the question i have is that i cant see why condition ID 5 should have sort order 2. as condition id 3 has sort order 0 and condition id 2 has sort order 1. Also if condition ID 1 becomes active does the SortOrder have to change to reflect that or does it just get the next higher SortOrder.

    how sortorder and the ID and condition ID relate will be the determining factor on which UPDATE statement is going to yield the correct results.

    If inactive condition ever become active then we have other mechanisms to assign sortorder, so no worries for inactive conditions.

    Thanks.