以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  Compute可以统计不重复的数据吗  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=93446)

--  作者:有点蓝
--  发布时间:2016/11/29 11:51:00
--  
参考:http://www.foxtable.com/webhelp/scr/2747.htm

Dim Products As List(Of String)
Products DataTables("产品").GetValues("产品名称","单价 > 100")
msgbox(Products.count)

--  作者:有点蓝
--  发布时间:2016/11/29 12:05:00
--  
如果客户数量比较多,成千上万的,还是用sql自己计算吧

sqlserver
select COUNT(distinct 客户) from 订单

access
select count(*) from (select distinct 客户 from {订单} ) a



--  作者:方丈
--  发布时间:2016/12/3 22:14:00
--  
记号