tsql - How to get the previous value of another field when I have specific data? -
i have message table these columns:
unit state logid messageid ```````````````````````````````````` unit1 status1 1 1 unit8 status2 5 1 unit3 * 3 1 unit5 status3 6 1 unit2 status2 11 5 unit6 * 2 5 unit4 status4 8 5 unit11 * 9 5
i want previous value of unit field when state of messages * need result @ last:
unit state logid messageid ````````````````````````````````` unit8 * 3 1 unit2 * 2 5 unit4 * 9 5
Comments
Post a Comment