我想根据我在 postgre 中的查询使用 atoti 进行测量。这是我的查询
select avg(sq.salary) 来自 (select salary, employee_id, time_id, departemen_id from employee 按 employee_id, time_id, salary, departemen_id) 分组为 sq 按 sq.departemen_id 分组
但是,我不知道如何将此查询更改为 atoti,尤其是如何在 atoti 中使用 group by?
我试过这样
cube_employee.measures["MEAN.Salary"] = tt.agg.mean(employee["salary"])
结果是
*ps 抱歉,传感器不好