-- Collection of code snippets by Arne Vajhøj 
-- posted to eksperten.dk, usenet and other places (2002-now) 
CREATE TABLE dummy (n INTEGER PRIMARY KEY);

ALTER TABLE dummy ADD CONSTRAINT only_two_digits CHECK (n BETWEEN 1 AND 99);

INSERT INTO dummy VALUES (999);

DROP TABLE dummy;
