Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mutually exclusive
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01321368
Message ID:
01321425
Views:
12
>Hi everybody,
>
>How can I make two bit fields to be mutually exclusive? E.g. I have Approved and OnHold fields and if OnHold = 1 Approved should be 0. If OnHold = 0 Approved still can be 0.
>
>Thanks a lot in advance.

And why you need TWO fields for ONE status?
Why not one tinyint:

0 - No processed yet.
1 - On Hold
2 - Approved
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform