Answer the question
In order to leave comments, you need to log in
Is it better to have 1 int status field or 2 boolean?
Hello. How to design order table more correctly? is it better to make the status(INT) field with values 0 (not submitted), 1(submited), 2(canceled) or boolean fields is_sibmited and is_canceled? What if there are 4 such fields? Which is more correct? It seems more convenient to have 1 field, but option 2 seems to be more readable for those who will use the application. But again, with 1 field, queries will be shorter and less data will be stored.
Answer the question
In order to leave comments, you need to log in
one field ENUM
At the same time, no one canceled the order history. But this is a separate table.
Но опять же с 1 полем запросы будут короче и данных будет храниться меньше.Эти причины по важности стоят сразу за мнением офисного клининг-менеджера.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question