Pregunta de entrevista de Thomson Reuters

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