Question: what is the difference between trigger and validation rule in salesforce?
Answer: Validation rules are used to confirm that the data entered into a record meet various data quality / business rules before letting the user save it. Triggers can be used for various different things and can be executed at different times - e.g. when initiating a new record, before saving it, when a record is deleted.