I am trying to create a Basic pay table (BP) with
CREATE TABLE bp ( bpid VARCHAR(5), FOREIGN KEY (bpid) REFERENCES designation(desigid), upperlimit DECIMAL(10,2) NOT NULL, lowerlimit DECIMAL(10,2) NOT NULL, increment DECIMAL(10,2) NOT NULL CONSTRAINT llvalid CHECK (upperlimit > lowerlimit) );
As you can see next to the ending, I want to check if upperlimit is upperlimit lowerlimit , how can I do this?
oracle check-constraints
Unknown
source share