Hi all:
Let's say you have a VARCHAR column. If the requirements apply for a given situation you populate the field for this column (Named "OLD_PEOPLE" 😉) with a "Y". So, if the requirement is, employees born before 1960, if Tom is over 52 years old he would get a "Y" in this column. Otherwise, the column is NULL.
Here is the problem. When writing a select statement such as "SELECT * FROM EMPLOYEES WHERE OLD_PEOPLE <> Y" then results would not be as I expect, which would be all employees where the field is NULL. Nothing is returned.
What is the proper way to handle this? Is Boolean the way? Do I need to actually use "N" instead of NULL?
Thanks!