-1

Using a CHECK constraint :
CREATE TABLE Test1
(
ThingA INT NOT NULL,
ThingB INT NOT NULL,
PRIMARY KEY (ThingA, ThingB)
);
INSERT INTO Test1 VALUES (1,1),(2,1),(3,2);
CREATE TABLE Test2
(
ThingA INT NOT NULL,
ThingB INT NOT NULL DEFAULT(1) CHECK(ThingB = 1),
Val INT NOT N...