So I was trying to work this out but it seems that the last line (the check) doesn\'t allow sub queries in it. Any way to make this work Oracle?
CREATE TABLE
You will probably need to create triggers and use RAISE_APPLICATION_ERROR if it's outside the allowed range.
RAISE_APPLICATION_ERROR