I use a column named active
in several of my database tables to adjust whether a particular entry/row/user/etc should be included in future query result tables instead of deleting the information.
How can I prevent this column, named active
, from showing up in the result tables from queries joining a number of tables which contain the active column?
The result table would normally be a summary based on a link table which may have its own active column as well (example: perhaps a schedule table)
This schedule table may contain the names/ids of employees/admins gathered from their own respective tables each of which house an active column.
The goal here is to get educated on queries and keep the active column.
Or just get educated and drop the column from all my tables if it happens to be a silly means of retaining information - whichever works.
Thanks to all that read and respond.