I have a table with the STATUZ column
This column consists of 3 possible values: NEW, VISUALIZED, DISCARDED
I have a function where I need to implement a SQL row that updates my table and changes all the values in the STATUZ column to: DISCARDED
The logic is:
Refresh in: MyTable , the column: statuz - where it has the value NEW for DISCOUNTED, and where it has the value VISUALIZED for DISCARDED. (at once)
The command I'm using but has no effect is:
UPDATE toyota_base SET statuz = 'DESCARTADO' WHERE statuz = 'NOVO' and statuz = 'VISUALIZADO';
All help is welcome. Thank you.