Skip to Content
मेन्यू
This question has been flagged
1 Reply
4145 Views

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.

Avatar
Discard
Related Posts Replies Views Activity
13
जुल॰ 24
14392
1
अग॰ 24
1432
3
नव॰ 23
1659
0
दिस॰ 21
2714
2
फ़र॰ 19
10018