Used Microsoft SQL Server to write several queries to calculate the attrition rate for a fictitious company between 2014 to 2018.