错误信息:
this is not permitted when the subquery follows =,>=.......

解决方案 »

  1.   

    不明白的话请网SIR们看一下SQL语句啦,,,,HELP!
      

  2.   

    select sum(case when latebkg>=0 and latebkg<=3 then 1 else 0) as aaa ,sum(case when latebkg>=3 and latebkg<=10 then 1 else 0) as bbb from InspSch
      

  3.   

    aaa和bbb就是你要的东西~~
    结贴吧~~
      

  4.   

    ISNULL
              ((SELECT COUNT(*)
              FROM inspsch
              WHERE latebkg >= 0 AND latebkg <= 3
              GROUP BY venid), 0) AS totalr
    不应该再用“GROUP BY venid”!!!