开发者社区> 问答> 正文

计算状态等于成功的所有金额,如何修改SQL查询以达到目的?

  • and message.invokeMethod: batchDeductResult and NORMAL not message.bizInfo.status: PROCESSING | SELECT json_extract_scalar(message, '$.bizInfo.fundSource') AS fundSource,date_format(time, '%Y-%m-%d') as deductDate, cast(json_extract_scalar(message, '$.bizInfo.deductHour') AS bigint) AS deductHour, count_if(json_extract_scalar(message, '$.bizInfo.status')='SUCCESS') as successCount ,COUNT(*) as totalCount,sum FROM log GROUP BY deductDate,fundSource, deductHour limit 1000000 计算状态等于成功的所有金额,如何修改SQL查询以达到目的?

展开
收起
提问的橘子 2024-08-05 15:48:24 32 0
0 条回答
写回答
取消 提交回答
问答分类:
SQL
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
SQL Server 2017 立即下载
GeoMesa on Spark SQL 立即下载
原生SQL on Hadoop引擎- Apache HAWQ 2.x最新技术解密malili 立即下载