I've run into an issue with adding a check constraint to one of my tables in my database. The check constraint's purpose is to make sure that times past 12:00 on a Wednesday cannot exist. This is what I've got:
alter table module_daytime
add CONSTRAINT CHK_TimeWED CHECK (Time BETWEEN '9:00' AND '12:00' AND Day='Wednesday')
I have already added data that abides to this rule into the table, however, when I try to add it, it still says that a row in my table violates said rule. What is wrong?