Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: Newbie on Constraints...

    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

  • RE: Newbie on Constraints...

    ok so here is what i came up with, can you guys tell me how it looks?

    A death date preceding a birth date

    ALTER TABLE TableName

    ADD CONSTRAINT constraintname

    CHECK (death_date...

Viewing 2 posts - 1 through 2 (of 2 total)