Title: Analysis of employees of a company using SQL and Tableau Figure 1 : The relational schema of the 'employees_mod' database. Introduction: We will be exploring the “employees_mod” database of a company which consists of the details of each employee including managers, salaries, and departments . Then, we will analyse the data by answering some interesting and insightful questions using SQL querying tools. Finally, we will create a dashboard to visualize some of the most important insights using Tableau. Insightful questions: 1. Does the company have more male or female employees? What is the trend of the male to female ratio for each year starting from 1990? 2. Which department has more male than female or vice v ersa? 3. Which department has more male managers than female managers? 4. How many active manager s are there for each department between year 1990 and 2000? 5. Which department has the highest average salary and vice versa in year 1999 ? 6. What is the average salary for male and female employee for each department? Analysis: 1. How does the breakdown between the male and female employees working in the company each year, starting from 1990 look like? Answer to Question 1 based on analysis: Overall, there are more male employees than female employees in the company. The ratio of male to female employee(40% female, 60% male) is roughly the same throughout the year from 1990 to 2002. 2. What is the composition of male and female employee s for each department? Answer to Question 2 based on analysis: All departments have more males than females and all of the male to female ratio in each department is similar which is 60% male and 40% female. The top 3 largest department by number of employees are Development, Production and Sales. 3. C ompare the number of male managers to the number of female managers from different departments for each year, starting from 1990. Answer to Question 3 based on anal ysis: All departments except Customer Service has more male managers than female managers. Customer Service department has 2 female managers more than male managers and it is the department with the highest number of managers. 4. Retrieve each department mana ger with its department name, gender, emp_no and their starting and ending date of employment. Determine if they are active between the year 1990 and 2000. Answer to Question 4 based on analysis: The interactive chart which allow us to use the filter to find the number of active managers from year 1990 to 2000 can be accessed in the final Tableau dashboard. 5. Compare the average annual employee salary for each departmen t in year 1999. Answer to Question 5 based on analysis: In year 1999, the department that has the highest average employee salary is Sales with an average annual salary of $71709.83. On the other hand, Human Resources has the lowest average annual salary of $47602.48, the difference between Sales and Human Resources is $24107.35. 6. C ompare the average salary of female versus male employees in the entire company until year 2002, and add a filter allowing you to see that per each department. Answer to Question 6 based on analysis: The breakdown of average salary for male and female per department is illustrated on the chart above. The difference of average salary for male and female is very little. Extra: 1. Create an SQL stored procedure that will allow you to obtain the average male and female salary per department within a certain salary range. Let this range be defined by two values the user can insert when calling the procedure. 2. Create an SQL view that will allow you to obtain each employee’s latest contract which specify the contract start date and end date.