Add the constraint so that the price of an item is always greater than zero.
ALTER TABLE UNIFORM ADD CHECK(Price > 0);
Explanation
To ensure data integrity and restrict the Price column to accept only values greater than zero, a CHECK constraint is added to the table. The context demonstrates the use of the ALTER TABLE command with the ADD clause to modify existing tables (e.g., adding UNIQUE constraints or new attributes). Following this pattern, the query modifies the 'UNIFORM' table (inferred from the SCHOOLUNIFORM database context) to include the specified condition.
Solution Steps
Step 1: Identify the table name (UNIFORM) and the column (Price) from the context.
Step 2: Use the ALTER TABLE command with the ADD clause to add a new constraint.
Step 3: Define the CHECK constraint with the condition 'Price > 0' to enforce the rule.