W3Schools: "SQL CHECK Constraint"

Read this page.

Click http://www.w3schools.com/sql/sql_check.asp link to open resource.