What is the difference between SN1 and SN2 reactions, and how do you determine via which mechanism the reaction will proceed?

IB