Expression rule to compare two values

I want to write an expression rule to compare two values: 

first value is from rule input and second value from a db table field.If the values are same ,then another field(column) of my db table must be set to inactive or 0.

  Discussion posts and replies are publicly visible