select ID,AVG(fPrice) as avgPrice from Price
where Hp_Date >='2017-07-04' and  Hp_Date <='2017-07-06'
group by ID
having SUM(case when ISNULL(fPrice,0) > 0 and Status=0 then 1 else 0 end)=天数

 

相关文章:

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