My question is if there is a way to do a conditional update for example
if existence = true
then update market set exitdate = now(), existence = false
else then update market set exitdate = null, existence = true
For more that I look for, I can't find something similar to my code.