conditional - sql server 2005 :how to put not null constraint on a column depending upon value in other column? -
Two columns are billable in a table (bit), billed time (datetime). I do not want billable date to be ineligible for billable faucet.
Add a check constraint:
Check (Enabled is not empty and the bill Is not eligible) or (billable is zero)
Comments
Post a Comment