I am trying to add a CHECK constraint to my column for a football game score. The format has to be like such --> 4-2 (with the hyphen) Also both numbers cannot exceed 999.
Below is what I have so far which obviously does not work..Any ideas?
Column data type is VARCHAR(7)
Constraint ScoreCheck CHECK(Score LIKE '0-999'-'0-999');