跳至内容
菜单
此问题已终结
1 回复
4040 查看

Hello community,

i am using below query and it shows me two rows due to project_type is selection(Internal, Project) field.

My requirement is sum(unit.amount) show be visible in two column for project_type instead of two rows. 

SELECT project_id, project_type, SUM(unit_amount)  FROM account_analytic_line where project_id = 2 GROUP BY project_type, project_id

Current Result:

469;"Internal";154.416666666667

469;"Project";3963.08333333333

Required result:

469; 154.416666666667; 3963.08333333333




Thanks in advance.

形象
丢弃
相关帖文 回复 查看 活动
13
7月 24
14235
1
8月 24
1298
3
11月 23
1580
0
12月 21
2624
2
2月 19
9894