Check out example codes for "sql set max value in column". It will help you in understanding the concepts better.

Code Example 1

ALTER TABLE dbo.mytable ADD CONSTRAINT CK_HAPPINESS_MAX CHECK (PokemonHappiness <= 10000)

Learn ReactJs, React Native from akashmittal.com