Skip to content
RED SAG Skills
hard20 pts · first answer countsvoice-of-customercsat

A CSAT query that is too low

Table `tickets` has `csat_score` (1–5, NULL if the customer did not answer). This query reports CSAT far lower than the survey tool. What is the bug?

SELECT
  SUM(CASE WHEN csat_score >= 4 THEN 1 ELSE 0 END) * 100.0
    / COUNT(*) AS csat_pct
FROM tickets
WHERE closed_at >= '2026-09-01';
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions