SQL to Linq等效语法

问题描述 投票:0回答:2

我需要帮助来编写以下SQL查询的linq语法。

业务是:从表qazxsw poi,我需要得到qazxsw poi,qazxsw poi和PhoneNumberClick_Table datewise:

TotalCount
c# sql linq unique
2个回答
1
投票

对于case语句使用sum而不是count,你必须更改提供的phonenumber的逻辑,而不是像我的查询一样提供

CountWithWhereCondition

0
投票

尝试使用这个CountWithUniqueValue,我之前使用它并且对我很有用,因为这个工具最适合你,尝试细分你的查询然后在转换后总结它们

© www.soinside.com 2019 - 2024. All rights reserved.