本帖最后由 bllqbz 于 2011-07-12 18:53:00 编辑

解决方案 »

  1.   


    SELECT count1=COUNT(case when Content='How' then 1 else null end), 
           count2=COUNT(case when Parent=1 then 1 else null end),
    FROM table1
      

  2.   


    select (SELECT COUNT(*) FROM table1 WHERE Content='How') cn1,
           (SELECT COUNT(*) FROM table WHERE Parent=1) cn2
      

  3.   


    select COUNT(*) cn1,
           (SELECT COUNT(*) FROM table WHERE Parent=1) cn2
    FROM table1 
    WHERE Content='How'
      

  4.   


    --orselect (SELECT COUNT(*) FROM table1 WHERE Content='How') cn1,
           COUNT(*) cn2
    FROM table 
    WHERE Parent=1