Project 02 || Call Center Data Analysis with SQL

Share with your networks

Call Center Data Sets: Prepare data, clean dirty data and perform analysis with SQL

Tools we used: MySQL Database

Language Used: SQL

Skills we applied:

Data format, Data category, Working with dates, Handling empty values, Remove duplicates, Preparing data, Cleaning dirty data, Use count, percentage, group by, order by functions, Using min, max and avg functions etc

Clients Expectations:

Data Set Format: CSV

Dataset & Code Download link:

Step 1:

Let's check our data table. We limit the results to 10 rows.

Code:

Output:

We have 12 column / data fields. The problems we see are:

Step 2:

Let's check the data types now...

Code:

Output:

The problems we found are:

Step 3:

Let's convert the date format first

Code:

Let's check our data table. We limit the results to 10 rows.

Code:

Output:

Step 4:

We are going to fix the data types issues. We have to change the data types as date for "call_timestamp" and "csat_score" as int.

Code:

Let's check the data types again:

Output:

Step 5:

Let's rename the 11th column name "call duration in minutes" because the name contains space

Code:

Step 6:

Now we are going to fix the black values in 4th column. We will replace those blanks with "NULL"

Code:

Let's check our data table. We limit the results to 10 rows.

Output:

Step 7:

Let's check for the duplicates values. First of all we will check the total row number

Code:

Output:

We have 32941 rows in our data table, Now lets check the unique row number for "id" and "customer_name"

Code:

Output:

Our data preparation is ready for analysis. Let's start our analysis now.

Step 8:

The operators called the customers for various reason, So let's count how many calls the made for each reason. We will calculate the percentage too.

Code:

Output:

Step 9:

Let's find out which day has the most calls?

Code:

Output:

Step 10:

Find out the minimum, maximum and average call duration.

Code:

Output:

Step 11:

Now we are going to analyze the customers sentiments.

Code:

Output:

Step 12:

Checking how many call are within, below or above the service for each call center.

Code:

Output:

Data Set and SQL Code Download link:

Interactive Data Visualization Dashboard with Tableau