Viewing 2 posts - 1 through 2 (of 2 total)
Thanks Gila!
So the code should read like this?
ALTER TABLE TableName
ADD CONSTRAINT chkcnst CHECK((SexColumn='Female' AND PregnancyFlagColumn = 'Y') OR PregnancyFlagColumn = 'N') ;
GO
January 29, 2012 at 9:21 am
#1439746
ok so here is what i came up with, can you guys tell me how it looks?
A death date preceding a birth date
ADD CONSTRAINT constraintname
CHECK (death_date...
January 29, 2012 at 8:22 am
#1439741