My MySQL table has these columns: Status : int(11) and Closed : int(1). The thing is that when I retrieve rows with SELECT, I want Closed to be treated as a Status value.
So, whenever Closed = 1, I want Status to be equal to -1. It's important to say that I need Status to be stored independently of the Closed column. Is that possible to do with the SELECT query or do I have to make like a PHP workaround for it ?
Closedvalue is updated back to0, I need the previousStatusvalue. That's whyStatuscannot be changed.