79729282

Date: 2025-08-08 03:13:17
Score: 1
Natty:
Report link

You can first convert it to a matrix and then call avg, which will calculate for each column. After that, you can aggregate by grouping according to the stock code and use toArray.

select toArray(avg(matrix(BidPrice))) 
from t 
where date(DateTime) =2025.08.01 
group by SecurityID
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andy