In my MySQL DB I have a table that stores information about contractor's activities:
`task_id` int(11) DEFAULT '0',
`task_date` date DEFAULT NULL,
`contractor_id` int(11) DEFAULT '0'
Business logic demands that task_id
's 5 and 6 are mutually exclusive, and for any given date any given contractor can have only 1 of them.
Is it possible to impose some constraint on that table that would enforce this logic?