【问题标题】:Teradata SQL - Please look at the Body and provide me the logic for the solutionTeradata SQL - 请查看正文并为我提供解决方案的逻辑
【发布时间】:2020-07-11 01:32:18
【问题描述】:

上述场景需要 Teradata 逻辑。谢谢。

【问题讨论】:

    标签: sql database teradata


    【解决方案1】:

    你可以使用聚合:

    select id, max(flag) as flag
    from t
    group by id;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-04
      • 1970-01-01
      • 2022-01-24
      • 2013-10-28
      • 2022-01-08
      相关资源
      最近更新 更多