SELECT
(TS_LEXIZE('english_stem',
UNNEST(STRING_TO_ARRAY(
REGEXP_REPLACE(feedback, '[^a-zA-Z]+', ' ', 'g'),
' ')
)))[1] AS token,
AVG(rating) AS avg_rating
FROM customer_survey
GROUP BY 1
HAVING COUNT(1) >= 3
ORDER BY 2 DESC
;
我有下面的问题,如果你想限制评分到小数点后2位,你会在哪里加上round()?
1条答案
按热度按时间8gsdolmq1#
在平均值之前加上一轮我就得到了。