sql server2008根據分組,求每組總個數

數據庫:sql server2008 代碼: select mytype,COUNT(*) as thecount from ( select (case when isNull((AllPay+performancePay ),0) >= 0 and isNull((AllPay+performancePay ),0) < 5000 then 'A' when isNull((AllPay+
相關文章
相關標籤/搜索