i have the following sql check and it accepts values that are supposed to be two uppercase letters followed by 3 numeric values.
CREATE TABLE Project(
projectID NCHAR(5) NOT NULL PRIMARY KEY,
CHECK(projectID LIKE '[A-Z][A-Z][0-9][0-9][0-9]'),
projectName NVARCHAR(20) NOT NULL UNIQUE,
budget MONEY NOT NULL)
how do you make it so that it will only accept uppercase letters followed by 3 numbers for the projectID? ex. it should reject values like 'au123' and accept values like 'AU123'.