以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何统计不同值的个数  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=123301)

--  作者:zhangchi96
--  发布时间:2018/8/11 15:24:00
--  如何统计不同值的个数
 

cm_d.Com_mandText = "Sel_ect count(身份证号) From {网络教师用户} Where 姓名 = \'"& dr("姓名") &"\'   "

 

请教,如果统计身份证号不相同的记录个数?

[此贴子已经被作者于2018/8/11 15:24:18编辑过]

--  作者:有点蓝
--  发布时间:2018/8/11 15:30:00
--  
Select 身份证号, count(身份证号) as 个数 From {网络教师用户} group by 身份证号