About this problem
The business question
The customer experience team sends NPS surveys by email, in-app prompt, and SMS. Before they cut the SMS budget, they want to know how many surveys each channel actually gets answered, not just how many it sends.
Expected result: One row per channel with surveys_sent, responses, response_rate_pct, and avg_score, where unanswered surveys (NULL score) count as sent but not answered.
What you will practice
Tables
CREATE TABLE nps_surveys (
survey_id INT PRIMARY KEY,
customer_id INT NOT NULL,
channel VARCHAR(20) NOT NULL,
sent_at DATE NOT NULL,
score INT
);More Aggregations practice
17 problems in this topic, with key concepts and common mistakes.