I have a table in which I have some columns a,b,c and for each column there is another column ,say, (x,y,z) which is dependent on a,b,c respectively.
x,y,z will have value 1 if a,b,c has any value and will contain null if a,b,c has null.
For an example Lets say,
The values stored in a is 2 and x is the column dependent on it.
So x will have value as 1.
If the values stored in a is null then x will have value as null.
so is there a way in which we can declare this constraint at the time of table creation.
Please suggest anything other than triggers.