gpt4 book ai didi

mysql - 以下语句出现多少次SQL

转载 作者:行者123 更新时间:2023-11-29 06:06:24 25 4
gpt4 key购买 nike

我想找出系统结果 no_answer 超过 5 次的每个不同数字

有谁知道如何找到以下内容,即

Table Name Calls

Field 1 - Phone_number
Field 2 - System_outcome

Phone_number System_outcome
07777778999 Answered
07777778123 No Answer
07777778999 No Answer
07777778999 No Answer
07777778999 No Answer
07777778999 No Answer
07777778124 No Answer
07777778128 Answered
07777778074 Answered

最佳答案

SELECT Phone_number, COUNT(*) AS no_answer_count
FROM Calls
WHERE System_outcome = 'no_answer'
GROUP BY Phone_number
HAVING no_answer_count > 5

关于mysql - 以下语句出现多少次SQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41345531/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com