-- Collection of code snippets by Arne Vajhøj 
-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and 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;
