【问题标题】:What is the best way using BQL to select non-duplicate items from BQL?使用 BQL 从 BQL 中选择非重复项目的最佳方法是什么?
【发布时间】:2014-11-30 21:47:06
【问题描述】:

使用 BQL 从 BQL 中选择非重复项的最佳方法是什么?

Search<PRTaxCode.prGovtRefNbr, 
 Where<PRTaxCode.prGovtRefNbr, IsNotNull>,
    And<PRTaxCode.prGovtRefNbr, ***not already in results***>>?

当前结果: 52-55555555555 52-55555555555

结果应该是: 52-55555555555 52-12345678 52-144550099

【问题讨论】:

  • 找到了我自己的答案:Search4, Aggregate>>
  • 使用 Aggregate 和 GroupBy 解决了这个问题。

标签: erp acumatica


【解决方案1】:

使用 Aggregate 和 GroupBy 构造得到了预期的结果。

找到我自己的答案:

  Search4<PRTaxCode.prGovtRefNbr, 
    Where<PRTaxCode.prGovtRefNbr, IsNotNull>, 
Aggregate<GroupBy<PRTaxCode.prGovtRefNbr>>>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-12
    • 1970-01-01
    • 2023-03-20
    • 1970-01-01
    • 2021-01-28
    • 1970-01-01
    • 1970-01-01
    • 2010-09-26
    相关资源
    最近更新 更多