İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3970 Görünümler

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
13
Tem 24
14063
1
Ağu 24
1207
3
Kas 23
1497
0
Ara 21
2558
2
Şub 19
9761