Thomson Reuters Interview Question

how to write a trigger in sql? when should you do it?