The values of one column cannot be greater than another
I am trying to create a table where the values in one column can't be greater than the next column over. For example, I am creating the following table. CREATE TABLE Price ( PriceID INT PRIMARY KEY IDENTITY (1,1), OriginalPrice FLOAT NOT NULL, CurrentPrice FLOAT NOT NULL, Discount FLOAT, ShippingCost FLOAT NOT NULL, Tax FLOAT NOT NULL); And Current Price cannot be greater than OriginalPrice. So what I tried doing was CurrentPrice FLOAT CHECK (CurrentPrice <= OriginalPrice) NOT NULL, But this gives me the following error: Msg 8141, Level 16, State 0, Line 1 Column CHECK constraint for column