select case when dayCount>10 or allCount>50 then '0' else '1' end as isTrue  from (select (select count(1) from product where Ptype='1' and datediff(day,getdate(),IssuseTime)=0  and C_ID=@C_ID) dayCount,(select count(1) from product where Ptype='1' and C_ID=@C_ID) allCount) t

高级嵌套的查询sql语句

相关文章:

  • 2022-12-23
  • 2021-08-09
  • 2021-08-29
  • 2021-11-24
  • 2021-11-13
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2022-01-28
  • 2021-11-24
相关资源
相似解决方案