select count(distinct convart(char(10),a) + convert(char(10),b) +convert(char(10),c)) from table

解决方案 »

  1.   

    select count(*) from table group by a,b,c
      

  2.   

    select count(*) from (select distinct a,b,c from  table ) t
      

  3.   

    select count(*) from (select distinct a,b,c from  table ) t
      

  4.   


    select count(*) from (select distinct a,b,c from  table ) t
      

  5.   

    在t中找不到dept呀!!!
    select count(*) from (select distinct a,b,c from  table ) t
      

  6.   

    可能我意思表达有误
    是 select count(t.a) from (select distinct a,b,c from  table ) t不是求a,b,c的和,
    是把table中a,b,c先查询出来,然后计算总记录。
      

  7.   

    select count(*) 总记录 from (select distinct a,b,c from  table ) t
      

  8.   

    select count(a) a的记录数,count(b) b的记录数,count(c) c的记录数 from (select distinct a,b,c from  table ) t
      

  9.   

    完了,越说越糊涂了
    举例如下:
    a  b  c  d
    1  2  3  
    1  2  3
    1  2  4
    1  3  5
    结果是:3
      

  10.   

    select count(*) from (select distinct a,b,c from  table ) t我试了一遍,在sql中可以执行,在pb中不可以~