SQL - Table Constraints
Given the table creation:
What happens if you run:
CREATE TABLE products ( id INT, price DECIMAL(5,2), CONSTRAINT chk_price CHECK (price >= 0) );
What happens if you run:
INSERT INTO products (id, price) VALUES (1, -10.00);
