Database design question here. A matter of curiosity.
Many of the database tables (physical files) I have worked with over the years included a one-byte column (field) to indicate whether a record is active or not. (This is commonly referred to as a logical delete.) Sometimes these fields can have more than two values (e.g. active, suspended, deleted).
Do you make a practice of including such field in new tables? If not, how do you decide when to include such a flag or not? Of what data type do you make it? What values do you use for the active and inactive settings?
Many of the database tables (physical files) I have worked with over the years included a one-byte column (field) to indicate whether a record is active or not. (This is commonly referred to as a logical delete.) Sometimes these fields can have more than two values (e.g. active, suspended, deleted).
Do you make a practice of including such field in new tables? If not, how do you decide when to include such a flag or not? Of what data type do you make it? What values do you use for the active and inactive settings?
Comment