I am new to postgres and trying to update the columns where the status is either null or new. The below query is validating for NEW but not for empty string/null value. Is there any way to achieve this?
update test_table c
set FLAG = -1, err_det='Incorrect entry'
where FName is not null and Status in ('NEW','')
This query is being used inside a function.