标签: data-modeling calculated-columns hana
我有一个表格,其中包含字段ID,状态和更改日期,如下所示:
Table
如何创建计算列,其中我应该计算如下: Open = 1 In progress = 1 Completed = 1
Open = 1 In progress = 1 Completed = 1
即,我们应该获得ID的最终状态计数。 相反,我得到的计数如下: Open = 3 Inprogress = 2 Completed = 1
Open = 3 Inprogress = 2 Completed = 1
答案 0 :(得分:0)
您可能希望查看SQL query to fetch OrderID, transactionID, Status based on transaction status which is Char的答案,这基本上是您的要求。