100% found this document useful (1 vote)
203 views29 pages

New Wheels

New-Wheels, a vehicle resale company, is facing declining sales and customer satisfaction, prompting the CEO to request a quarterly report on key metrics. The analysis reveals a total of 994 unique customers, with Chevrolet being the most preferred vehicle maker and a concerning decline in average customer ratings from 3.55 in Q1 to 2.40 in Q4. Additionally, the percentage of negative feedback has increased significantly over the quarters, indicating a need for the company to address customer dissatisfaction to improve retention and sales.

Uploaded by

atashi.dey1968
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
203 views29 pages

New Wheels

New-Wheels, a vehicle resale company, is facing declining sales and customer satisfaction, prompting the CEO to request a quarterly report on key metrics. The analysis reveals a total of 994 unique customers, with Chevrolet being the most preferred vehicle maker and a concerning decline in average customer ratings from 3.55 in Q1 to 2.40 in Q4. Additionally, the percentage of negative feedback has increased significantly over the quarters, indicating a need for the company to address customer dissatisfaction to improve retention and sales.

Uploaded by

atashi.dey1968
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

New Wheels Project

Introduction to SQL

Problem Statement

Business Context

A lot of people in the world share a common desire: to own a vehicle. A car or an automobile is seen as an
object that gives the freedom of mobility. Many now prefer pre-owned vehicles because they come at an
affordable cost, but at the same time, they are also concerned about whether the after-sales service provided
by the resale vendors is as good as the care you may get from the actual manufacturers.

New-Wheels, a vehicle resale company, has launched an app with an end-to-end service from listing the
vehicle on the platform to shipping it to the customer's location. This app also captures the overall after-sales
feedback given by the customer.

Objective

New-Wheels sales have been dipping steadily in the past year, and due to the critical customer feedback and
ratings online, there has been a drop in new customers every quarter, which is concerning to the business.
The CEO of the company now wants a quarterly report with all the key metrics sent to him so he can assess
the health of the business and make the necessary decisions.

As a data analyst, you see that there is an array of questions that are being asked at the leadership level that
need to be answered using data. Import the dump file that contains various tables that are present in the
database. Use the data to answer the questions posed and create a quarterly business report for the CEO.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 1
Business Questions

Question 1: Find the total number of customers who have placed orders. What is the
distribution of the customers across states?

Solution Query:

SELECT COUNT(DISTINCT customer_id) AS total_customers

FROM order_t;

What is the distribution of the customers across states?

SELECT state, COUNT(*) AS number_of_customers

FROM customer_t

GROUP BY state

ORDER BY number_of_customers DESC;

Output:

● .

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 2
Observations and Insights:

Total Number of Customers Who Have Placed Orders:


 Observation: The total number of unique customers who have placed orders is 994.
 Insight: This metric provides a clear indication of the customer base size. Understanding the total
number of unique customers helps in assessing the reach and popularity of New-Wheels' services. A
higher number of unique customers would generally indicate wider market penetration and customer
acquisition.
Distribution of Customers Across States:
 Insight: By analyzing the distribution of customers across states, you can identify regions with higher
customer concentrations. This can inform targeted marketing and sales strategies, ensuring efforts are
focused on areas with the highest potential for growth. Additionally, it highlights regions with lower
customer numbers, indicating potential areas for business expansion or improvement.
Summary:
 The total number of unique customers who have placed orders is significant, indicating a broad
customer base.
 The distribution of customers across states provides valuable insights into regional preferences and
market penetration.
 Leveraging this data, New-Wheels can develop strategies to enhance customer acquisition in states
with lower numbers and strengthen relationships in regions with higher concentrations of customers.

Total Number of Customers Who Have Placed Orders:


 Observation: The query results indicate that there are 994 unique customers who have placed orders
with New-Wheels.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 3
 Insight: This metric highlights the size of the customer base. Understanding that
nearly 1,000 unique customers have engaged with the platform can provide a
foundation for assessing customer acquisition strategies and overall market reach. It shows a
significant engagement, but also implies potential for further growth.
Summary:
 The total number of unique customers who have placed orders (994) provides a baseline
understanding of the customer base size.
 The distribution of customers across states reveals which regions have the highest and lowest
concentrations of customers, guiding strategic decisions for targeted marketing and expansion efforts.

Question 2: Which are the top 5 vehicle makers preferred by the customers?

Solution Query:

SELECT vehicle_maker, COUNT(*) AS num_orders

FROM order_t

JOIN product_t ON order_t.product_id = product_t.product_id

GROUP BY vehicle_maker

ORDER BY num_orders DESC

LIMIT 5;

Output:

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 4
Observations and Insights:

Observations:
 The table displays the number of orders for five different vehicle makers.
 The vehicle makers and their corresponding number of orders are as follows:
1. Chevrolet: 83 orders
2. Ford: 63 orders
3. Toyota: 52 orders
4. Pontiac: 50 orders
5. Dodge: 50 orders
Insights:
1. Market Leaders: Chevrolet is the clear leader with 83 orders, significantly ahead of other vehicle
makers. This indicates a strong preference for Chevrolet among customers.
2. Strong Contenders: Ford and Toyota follow Chevrolet with 63 and 52 orders respectively. These
brands are also quite popular and are significant players in the pre-owned vehicle market.
3. Tied Brands: Pontiac and Dodge both have 50 orders, indicating an equal level of preference among
customers for these brands. This suggests a competitive market segment for these two vehicle
makers.
4. Customer Preferences: The data provides valuable insights into customer preferences, showing which
brands are more favored. This information can help New-Wheels tailor its inventory and marketing
strategies to focus on the most popular vehicle makers.
5. Inventory Management: Understanding the demand for specific brands can aid in inventory
management. New-Wheels can ensure they have sufficient stock of the most popular brands like
Chevrolet, Ford, and Toyota to meet customer demand.
Summary:
 Chevrolet is the most popular vehicle maker, followed by Ford and Toyota.
 Pontiac and Dodge have equal numbers of orders, indicating a competitive market between these two
brands.
 These insights can guide strategic decisions regarding inventory, marketing, and customer
engagement to improve sales and customer satisfaction.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 5
Question 3: Which is the most preferred vehicle maker in each state?

Solution Query:

SELECT

state,

vehicle_maker,

total_customers,

cus_rank

FROM (

SELECT

c.state,

p.vehicle_maker,

COUNT(DISTINCT o.customer_id) AS total_customers,

RANK() OVER (PARTITION BY c.state ORDER BY COUNT(DISTINCT o.customer_id) DESC) AS cus_rank

FROM order_t o

JOIN product_t p ON o.product_id = p.product_id

JOIN customer_t c ON o.customer_id = c.customer_id

GROUP BY c.state, p.vehicle_maker

) ranked_vehicles

WHERE cus_rank = 1

ORDER BY state;

Output:

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 6
Observations and Insights:

Observations:
 The table displays data for three states: Alabama, Arizona, and Arkansas.
 Alabama has three vehicle makers listed: Lincoln, Lexus, and Chevrolet, each with 1 customer and a
rank of 1.
 Arizona has one vehicle maker listed: Chevrolet, with 1 customer and a rank of 1.
 Arkansas has two vehicle makers listed: Pontiac and GMC, each with 1 customer and a rank of 1.
 The customer rank is consistently 1 for all entries, indicating that each vehicle maker has the same
rank within the state.
Insights:
1. Uniform Customer Rank: The data shows a uniform customer rank of 1 for all vehicle makers within
the states. This suggests that each vehicle maker listed in the table has an equal number of customers,
leading to the same rank.
2. State Preferences:
o Alabama has a diversified preference for vehicle makers with Lincoln, Lexus, and Chevrolet all
having an equal number of customers.
o Arizona shows a preference solely for Chevrolet, with no other vehicle makers listed.
o Arkansas has a split preference between Pontiac and GMC, both with equal customer numbers.
3. Opportunity for Growth: For states like Arizona, where only one vehicle maker is listed, there may be
an opportunity for New-Wheels to introduce and promote other vehicle makers to diversify customer
preferences.
4. Market Presence: The data highlights which vehicle makers have established a presence in specific
states. This can guide marketing and sales strategies to strengthen the presence of underrepresented
vehicle makers or expand the market for the popular ones.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 7
Summary:
 Alabama shows a diverse preference among three vehicle makers.
 Arizona has a strong preference for Chevrolet.
 Arkansas has an equal preference for Pontiac and GMC.
 The uniform customer rank provides an opportunity to assess market presence and growth potential
for different vehicle makers.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 8
Question 4: Find the overall average rating given by the customers.
What is the average rating in each quarter?

Consider the following mapping for ratings: “Very Bad”: 1, “Bad”: 2, “Okay”: 3, “Good”:
4, “Very Good”: 5

Solution Query:

SELECT AVG(rating) AS overall_avg_rating

FROM (

SELECT

CASE

WHEN customer_feedback = 'Very Bad' THEN 1

WHEN customer_feedback = 'Bad' THEN 2

WHEN customer_feedback = 'Okay' THEN 3

WHEN customer_feedback = 'Good' THEN 4

WHEN customer_feedback = 'Very Good' THEN 5

END AS rating

FROM order_t

) AS ratings;

--What is the average rating in each quarter?

-- Average Rating in Each Quarter

SELECT quarter_number, AVG(rating) AS avg_rating_per_quarter

FROM (

SELECT

quarter_number,

CASE

WHEN customer_feedback = 'Very Bad' THEN 1

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 9
WHEN customer_feedback = 'Bad' THEN 2

WHEN customer_feedback = 'Okay' THEN 3

WHEN customer_feedback = 'Good' THEN 4

WHEN customer_feedback = 'Very Good' THEN 5

END AS rating

FROM order_t

) AS ratings

GROUP BY quarter_number

ORDER BY quarter_number;

Output:

Observations and Insights:

Observations:
1. Overall Average Rating:
o The table shows a single row with the column overall_avg_rating having a value of 3.135.

2. Average Rating per Quarter:


o Quarter 1: avg_rating_per_quarter is 3.55
o Quarter 2: avg_rating_per_quarter is 3.35

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 10
o Quarter 3: avg_rating_per_quarter is 2.96
o Quarter 4: avg_rating_per_quarter is 2.40
Insights:
1. Decline in Customer Satisfaction:
o The overall average rating of 3.135 is moderate, suggesting room for improvement in customer
satisfaction.
o The average ratings for each quarter show a noticeable decline from Quarter 1 to Quarter 4,
indicating that customer satisfaction has been decreasing over time.
2. High Initial Satisfaction:
o Quarter 1 had the highest average rating of 3.55, which suggests that customer satisfaction
was relatively high at the beginning of the period.
3. Significant Drop by Quarter 4:
o By Quarter 4, the average rating dropped to 2.40, the lowest among all quarters, highlighting
a significant decrease in customer satisfaction.
o This trend might suggest increasing dissatisfaction with after-sales service or other aspects of
the customer experience over the year.
4. Actionable Insight:
o The decreasing trend in average ratings calls for a detailed investigation into the factors
contributing to customer dissatisfaction. Identifying these issues and addressing them
promptly can help New-Wheels improve customer satisfaction and potentially reverse the
decline in sales.
Summary:
 The overall average rating is 3.135, indicating moderate customer satisfaction.
 There is a clear downward trend in average ratings from Quarter 1 to Quarter 4.
 Quarter 1 had the highest satisfaction, while Quarter 4 had the lowest.
 Addressing the factors behind this decline is crucial for improving customer satisfaction and business
performance.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 11
Question 5: Find the percentage distribution of feedback from the
customers. Are customers getting more dissatisfied over time?

Solution Query:

SELECT

quarter_number,

SUM(CASE WHEN customer_feedback = 'Very Bad' THEN 1 ELSE 0 END) * 100.0 / COUNT(*) AS
very_bad_percentage,

SUM(CASE WHEN customer_feedback = 'Bad' THEN 1 ELSE 0 END) * 100.0 / COUNT(*) AS


bad_percentage,

SUM(CASE WHEN customer_feedback = 'Okay' THEN 1 ELSE 0 END) * 100.0 / COUNT(*) AS


okay_percentage,

SUM(CASE WHEN customer_feedback = 'Good' THEN 1 ELSE 0 END) * 100.0 / COUNT(*) AS


good_percentage,

SUM(CASE WHEN customer_feedback = 'Very Good' THEN 1 ELSE 0 END) * 100.0 / COUNT(*) AS
very_good_percentage

FROM

order_t

GROUP BY

quarter_number

ORDER BY

quarter_number;

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 12
Output:

Observations and Insights:

Observations:
 The table displays the percentages of different performance categories across four quarters.
 The columns in the table are: quarter_number, very_bad_percentage, bad_percentage,
okay_percentage, good_percentage, and very_good_percentage.
Here is a summary of the data:
quarter_numbe very_bad_percentag bad_percentag okay_percentag good_percentag very_good_percentag
r e e e e e
1 10.97% 11.29% 19.03% 28.71% 30.00%
2 14.89% 14.12% 20.23% 22.14% 28.63%
3 17.90% 22.71% 21.83% 20.96% 16.59%
4 30.65% 29.15% 20.10% 10.05% 10.05%
Insights:
1. Increase in Negative Feedback:
o There is a clear upward trend in the very_bad_percentage and bad_percentage categories from
Quarter 1 to Quarter 4.
o very_bad_percentage increased from 10.97% in Quarter 1 to 30.65% in Quarter 4.
o bad_percentage rose from 11.29% in Quarter 1 to 29.15% in Quarter 4.
2. Stable Okay Ratings:
o The okay_percentage remains relatively stable across the quarters, fluctuating slightly but not
showing a significant trend.
3. Decline in Positive Feedback:
o There is a downward trend in the good_percentage and very_good_percentage categories over
the quarters.
o good_percentage dropped from 28.71% in Quarter 1 to 10.05% in Quarter 4.
o very_good_percentage decreased from 30.00% in Quarter 1 to 10.05% in Quarter 4.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 13
4. Overall Trend:
o The overall trend suggests a decline in customer satisfaction over the
quarters, with a significant increase in negative feedback and a decrease in positive feedback.
Summary:
 Quarter 1: Highest positive feedback with 30% very_good_percentage and 28.71% good_percentage.
 Quarter 4: Highest negative feedback with 30.65% very_bad_percentage and 29.15%
bad_percentage, and the lowest positive feedback (both good and very_good at 10.05%).
These observations indicate a need for New-Wheels to investigate the factors contributing to increasing
customer dissatisfaction and address these issues to improve overall customer satisfaction and retention.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 14
Question 6: What is the trend of the number of orders by quarter?

Solution Query:

SELECT quarter_number, COUNT(order_id) AS number_of_orders

FROM order_t

GROUP BY quarter_number

ORDER BY quarter_number;

Output:

Observations and Insights:

Observations:
1. Number of Orders Per Quarter:
o Quarter 1: 310 orders
o Quarter 2: 262 orders
o Quarter 3: 229 orders
o Quarter 4: 199 orders
2. Trend Analysis:
o The number of orders consistently decreases from Quarter 1 to Quarter 4.
o The highest number of orders is in Quarter 1 (310 orders).
o The lowest number of orders is in Quarter 4 (199 orders).
Insights:
1. Consistent Decline in Orders:

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 15
o There is a noticeable and consistent decline in the number of orders each
quarter, which suggests that New-Wheels is experiencing a steady
decrease in sales over time. This could be due to various factors such as declining customer
interest, increased competition, or inadequate marketing efforts.
2. Seasonal or Cyclical Trends:
o The significant drop in orders from Quarter 1 to Quarter 4 may indicate seasonal or cyclical
trends. For instance, customers might be more inclined to purchase vehicles at the beginning of
the year (Quarter 1) and less so towards the end of the year (Quarter 4). Understanding these
patterns can help New-Wheels plan targeted promotions and sales strategies to mitigate the
decline.
3. Strategic Adjustments Needed:
o The consistent drop in orders highlights the need for strategic adjustments. New-Wheels
should investigate the underlying causes of this trend and implement measures to boost sales.
This could involve enhancing marketing efforts, improving customer service, offering incentives,
or addressing any negative feedback impacting customer decisions.
Summary:
 Quarter 1 had the highest number of orders (310), while Quarter 4 had the lowest (199).
 There is a consistent decline in orders from Quarter 1 to Quarter 4, suggesting seasonal trends or
other influencing factors.
 To address the declining trend, New-Wheels should analyze the underlying causes and implement
strategies to boost sales and improve customer engagement throughout the year.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 16
Question 7: Calculate the net revenue generated by the company.
What is the quarter-over-quarter % change in net revenue?

Solution Query:

select sum(final_price) as amount from

(select quarter_number,(1-discount)*vehicle_price*quantity as final_price from order_t) as a;

--What is the quarter-over-quarter % change in net revenue?

select *,(quarter_revenue-previous_quarter_revenue)*100/previous_quarter_revenue as percentage_change


from(

select quarter_number,amount as quarter_revenue,lag(amount) over (order by quarter_number) as


previous_quarter_revenue from (

select quarter_number,sum(final_price) as amount from

(select quarter_number,(1-discount)*vehicle_price*quantity as final_price from order_t) as a group by


quarter_number) order by quarter_number);

Output:

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 17
Observations and Insights:

Observations:
1. Quarterly Revenue Data:
o Quarter 1:
 Revenue: 18,032,549.90
 Previous Quarter Revenue: Not Applicable
 Percentage Change: Not Applicable
o Quarter 2:
 Revenue: 13,122,995.76
 Previous Quarter Revenue: 18,032,549.90

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 18
 Percentage Change: -27.23%
o Quarter 3:
 Revenue: 8,882,298.84
 Previous Quarter Revenue: 13,122,995.76
 Percentage Change: -32.32%
o Quarter 4:
 Revenue: 8,573,149.28
 Previous Quarter Revenue: 8,882,298.84
 Percentage Change: -3.48%
2. Total Net Revenue:
o The total net revenue calculated is 48,610,993.78.

Insights:
1. Quarterly Decline:
o There is a consistent decline in revenue from Quarter 1 to Quarter 4.
o The most significant drops are observed in Quarter 2 (-27.23%) and Quarter 3 (-32.32%),
indicating potential issues that might have started in the second quarter and worsened in the
third quarter.
2. Slight Improvement:
o Although Quarter 4 still shows a negative change (-3.48%), the decline is much less steep
compared to Quarters 2 and 3. This might indicate initial signs of stabilization or minor
improvements in revenue.
3. Total Net Revenue:
o Despite the declining trend, the total net revenue over the period is quite substantial at
48,610,993.78. This highlights the overall potential of the business even amidst the
challenges faced in the recent quarters.
4. Strategic Focus:
o The significant drops in Quarters 2 and 3 suggest a need for detailed analysis to understand
and address the root causes. This may include investigating customer satisfaction, market
conditions, and internal factors affecting sales.
o Since Quarter 4 shows a smaller decline, it could be an indication that the measures taken in
this period might be starting to work, or the decline might be bottoming out. Continued focus
on improving customer engagement and marketing strategies could help in reversing the trend.
Summary:
 There is a noticeable decline in revenue from Quarter 1 to Quarter 4, with the largest drops in
Quarters 2 and 3.
 Quarter 4 shows signs of slight improvement with a less steep decline.
 The total net revenue over the year is significant, indicating a strong overall potential for the business.
 Investigating the causes of the decline and focusing on strategic improvements can help in stabilizing
and potentially reversing the downward trend.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 19
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 20
Question 8: What is the trend of net revenue and orders by quarters?

Solution Query:

SELECT

quarter_number,

ROUND(SUM(quantity*vehicle_price), 0) AS revenue,

COUNT(order_id) AS total_order

FROM order_t

GROUP BY 1

ORDER BY 1;

Output:

Observations and Insights:

Observations:
 The table displays the revenue and total number of orders for each quarter.
 The columns in the table are: quarter_number, revenue, and total_order.
Here is a summary of the data:

Insights:

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 21
1. Consistent Decline in Revenue:
o Revenue decreases each quarter from 39,637,631 in Quarter 1 to
23,496,008 in Quarter 4.
o This suggests that the company's sales performance is consistently dropping each quarter,
which is a concerning trend.
2. Decrease in Total Orders:
o The number of orders also shows a downward trend from 310 in Quarter 1 to 199 in Quarter 4.
o This aligns with the decline in revenue, indicating fewer customer transactions over time.
3. Positive Correlation:
o There appears to be a positive correlation between the total number of orders and the revenue.
As the number of orders decreases, the revenue also decreases.
o This correlation implies that improving the number of orders could directly impact revenue
positively.
4. Best and Worst Quarters:
o Quarter 1 has the highest revenue and total orders, making it the best-performing quarter.
o Quarter 4 has the lowest revenue and total orders, making it the least-performing quarter.
5. Strategic Focus:
o The consistent decline in both revenue and total orders highlights the need for strategic
intervention. This could involve enhancing marketing efforts, offering promotions, or improving
customer satisfaction to increase orders and revenue.
o Understanding the factors contributing to the decline in orders and revenue is crucial for
reversing this trend and improving business performance.
Summary:
 The data shows a consistent decline in both revenue and the number of orders from Quarter 1 to
Quarter 4.
 There is a positive correlation between the number of orders and revenue.
 Strategic efforts are needed to address the declining trend and improve overall business performance.

Question 9: What is the average discount offered for different types of credit cards?

Solution Query:

SELECT

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 22
credit_card_type,

ROUND(AVG(discount), 2) AS average_discount

FROM order_t t1

INNER JOIN customer_t t2

ON t1.customer_id = t2.customer_id

GROUP BY 1

ORDER BY 2 DESC;

Output:

Observations and Insights:

Observations:
1. Credit Card Types and Discounts:
o The table lists different credit card types along with their average discount values.
o The credit card types and their corresponding average discounts are as follows:
1. Insta payment: 0.77
2. solo: 0.70
3. American express: 0.68
4. diners-club-enroute: 0.67

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 23
5. master card: 0.65
6. diners-club-carte-blan: 0.65
7. jcb: 0.64
8. visa: 0.64
9. switch: 0.63
10. discover: 0.62
Insights:
1. Top Discount Provider:
o Insta payment offers the highest average discount at 0.77. This suggests that customers using
the insta payment credit card receive the most significant savings on their purchases.
2. Competitive Discounts:
o solo and American express follow with average discounts of 0.70 and 0.68, respectively.
These card types also provide considerable savings to customers.
o diners-club-enroute, mastercard, and diners-club-carte-blan offer average discounts close to
each other, around 0.65.
3. Moderate Discounts:
o jcb and visa both provide an average discount of 0.64, making them moderate in terms of the
discount offerings.
4. Least Discount Provider:
o discover offers the lowest average discount among the first 10 rows at 0.62. This suggests
that customers using the discover card receive the least savings compared to the other listed
card types.
5. Strategic Focus:
o The table provides a comparison of average discounts offered by different credit card types.
New-Wheels can leverage this information to create targeted marketing campaigns, promoting
the card types with higher average discounts to attract cost-conscious customers.
o Additionally, partnerships with credit card providers offering higher discounts can be
strengthened to encourage more customers to use those cards, enhancing customer
satisfaction and loyalty.
Summary:
 Insta payment offers the highest average discount, while discover provides the lowest among the
listed credit card types.
 The average discounts for the credit card types range from 0.62 to 0.77.
 This information can be used to create targeted marketing campaigns and strengthen partnerships
with credit card providers to enhance customer savings and satisfaction.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 24
Question 10: What is the average time taken to ship the placed
orders for each quarter?

Solution Query:

SELECT

quarter_number,

AVG(julianday(ship_date) - julianday(order_date)) AS avg_shipping_time

FROM

order_t

GROUP BY

quarter_number

ORDER BY

quarter_number;

Output:

Observation and insight

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 25
Observations:

1. Average Shipping Time Per Quarter:

o Quarter 1: 57.17 days

o Quarter 2: 71.11 days

o Quarter 3: 117.76 days

o Quarter 4: 174.10 days

2. Trend Analysis:

o The average shipping time increases significantly from Quarter 1 to Quarter 4.

o Quarter 1 has the shortest average shipping time, while Quarter 4 has the longest.

Insights:

1. Rising Shipping Delays:

o The data shows a clear and concerning trend of increasing average shipping times across the
quarters. This suggests that New-Wheels is experiencing growing inefficiencies or challenges
in the shipping process.

2. Customer Impact:

o Longer shipping times can negatively impact customer satisfaction. As shipping times increase,
customers may become frustrated and less likely to recommend New-Wheels to others,
potentially contributing to the decline in sales and customer acquisition.

3. Operational Bottlenecks:

o The significant increase in shipping times indicates potential bottlenecks or issues within the
supply chain or logistics operations. Identifying and addressing these bottlenecks is crucial for
improving shipping efficiency.

4. Strategic Focus:

o To improve customer satisfaction and business performance, New-Wheels should prioritize


reducing shipping times. This could involve optimizing logistics, improving coordination with
shipping partners, and implementing better inventory management practices.

Summary:

 The average shipping time has increased significantly from 57.17 days in Quarter 1 to 174.10 days in
Quarter 4.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 26
 This trend suggests operational inefficiencies and potential bottlenecks in the
shipping process.

 Addressing these issues is crucial for improving customer satisfaction and reversing the negative
trend in shipping times.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 27
Business Metrics Overview

Total Revenue Total Orders Total Customers Average Rating

48,610,993.78 1000 994 3.07

Last Quarter Revenue Last quarter Orders Average Days to Ship % Good Feedback

8,573,149.28 199 97.964 21.5%

Business Recommendations
Recommendations:
1. Reduce Shipping Time
o Observation: The average shipping time is very high at nearly 98 days.
o Recommendation: Improve logistics and supply chain management to reduce shipping times.
This can enhance customer satisfaction and potentially increase repeat orders.
2. Increase Positive Feedback
o Observation: Only 21.5% of feedback is positive.
o Recommendation: Implement a robust customer feedback system to understand pain points.
Actively address negative feedback and enhance customer service quality to improve positive
feedback percentages.
3. Enhance Customer Experience
o Observation: The average rating is 3.07, indicating moderate customer satisfaction.
o Recommendation: Focus on improving the quality of after-sales service and customer support.
Consider training staff, enhancing product quality, and offering additional services to improve
customer ratings.
4. Boost Marketing Efforts
o Observation: With 994 total customers and significant revenue, there's potential for more
customer acquisition.
o Recommendation: Invest in targeted marketing campaigns to attract new customers. Utilize
customer segmentation to tailor marketing efforts effectively.
5. Analyze Last Quarter Performance
o Observation: Both revenue and order numbers in the last quarter are significantly lower than in
previous quarters.
o Recommendation: Conduct a detailed analysis to identify reasons for the decline. Address any
issues related to product offerings, market conditions, or customer service that may have
contributed to the drop.
6. Implement Loyalty Programs
o Observation: Maintaining and increasing the total number of orders is crucial.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 28
o Recommendation: Introduce loyalty programs and incentives for repeat
customers. This can help in retaining existing customers and encouraging
more frequent purchases.
7. Improve Communication
o Observation: Customer feedback is critical for improvement.
o Recommendation: Maintain open lines of communication with customers. Regularly solicit
feedback and use it to make data-driven improvements in products and services.
8. Optimize Inventory Management
o Observation: Efficient handling of stock can reduce shipping delays.
o Recommendation: Implement better inventory management practices to ensure products are
available and can be shipped quickly.
By focusing on these areas, New-Wheels can improve its overall performance, customer satisfaction, and
business growth.

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 29

You might also like