Suppose there is a Gender column in a Table which have only 2 permissible values as 'M' and 'F' for Male and Females. No other values can be inserted in that column while inserting the records except 'M' and 'F'.
There are some more columns which have set of permissible values
How the constraint could be apply on that that type of columns?Is there any general way to restrict the values of columns in the database?
Should I write a trigger or what should i do for such a scenario?
Thanks in advance if anyone can help me.....