【问题标题】:tableau join multiple tables ORing on single columntableau 在单列上连接多个表 O'Ring
【发布时间】:2018-01-09 22:04:14
【问题描述】:

我有以下表格:ProductProductEventProduct 表的一些相关列是SocialID, MarketID, LocalID。这三列的数字对应于ProductEvent 中名为EventID 的一列。

这是我的问题:有没有更好的方法来加入这些表,我不必进行 3 个单独的连接都指向匹配 EventID

【问题讨论】:

    标签: sql tableau-api


    【解决方案1】:

    也许像this:

    select *
    from Product P join ProductEvent PE
    on (PE.EventID = P.SocialID or PE.EventID = P.MarketID or PE.EventID = P.LocalID)
    

    【讨论】:

      猜你喜欢
      • 2018-05-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-16
      • 1970-01-01
      • 2019-02-26
      • 1970-01-01
      相关资源
      最近更新 更多