تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4016 أدوات العرض

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
يوليو 24
14161
1
أغسطس 24
1262
3
نوفمبر 23
1557
0
ديسمبر 21
2601
2
فبراير 19
9827