I have below values in table, and need to set valid_values =6 when found >6
ID VALUE VALID_VALUES ---------- --------------- -----------