LTM Limited interview question

What are constraints in SQL, where do we use them, explain with an example?