axapta - Order by Sum Field -


i try write sql-statement in x++. should this:

select      table.field1, sum(table.field2) sumfield      table      table.fieldx = group      table.field1 order      sumfield; 

the problem have in x++ orders records before calculating sum of them. know make while select in x++ , order them code, not way want it.

can tell me how handle this?

sorry, cannot both sort by , group by in x++ select or query.

the solution make view (without sort), select on view order by.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -