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
No unfortunately CHECK constraints cannot contain subqueries - see documentation.