DB 查询某一时间段内某个字段的数量和的最大值。
比如说
数据库查询语句

大体意思就是 在2017年11月份内的 s_flag是0000的最多的是有多少?
select max(a) max from (select count(s.s_flag) a,s.s_data data
from student s where s.s_flag =’0000’
and s.s_data between ‘2017-11-01’ and ‘2017-11-30’
group by s.s_data ) c ;

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-12-05
  • 2021-06-01
  • 2021-08-09
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案