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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -