如何在KDB Q中按日期对列求和?
我在KDB中有一个表,列为date、time和returns。我需要将每天的累计回报率存储在一个新列中,但我不确定如何按日期分隔sums函数。这就是我所尝试的:如何在KDB Q中按日期对列求和?,kdb,Kdb,我在KDB中有一个表,列为date、time和returns。我需要将每天的累计回报率存储在一个新列中,但我不确定如何按日期分隔sums函数。这就是我所尝试的: Table: update cumreturns: sums returns from Table by date where time within (09:30:00;16:00:00) 但我得到一个评估错误:运行它的日期。是我的语法不正确,还是我需要另一种方法来解决这个问题?您需要在'from'语句之前包含by子句,类似这样 u
Table: update cumreturns: sums returns from Table by date where time within (09:30:00;16:00:00)
但我得到一个评估错误:运行它的日期。是我的语法不正确,还是我需要另一种方法来解决这个问题?您需要在'from'语句之前包含by子句,类似这样
update cumReturns:sums returns by date from t
您需要在'from'语句之前包含by子句,类似这样
update cumReturns:sums returns by date from t