sql server 去重计数
时间: 2023-09-11 13:10:01 浏览: 338
SQL Server 去重
要在SQL Server中进行去重计数,可以使用以下查询语句:
SELECT COUNT(DISTINCT [Mobile]) as UniqueCount
FROM [dbo].[Campaigns]
这个查询语句将返回一个名为UniqueCount的列,其中包含去重后的手机号数量。<span class="em">1</span>
#### 引用[.reference_title]
- *1* [SqlServer 数据去重](https://blog.csdn.net/weixin_33701251/article/details/86249927)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文