In standard SQL the GROUP BY statement can take multiple comma separated fields, but in Flexsim it simply says "syntax error, unexpected identifier, expecting end of code". Am I simply doing it wrong or is there a way to do this?
query("SELECT [Field1], [Field2],SUM(Field1) FROM Table ORDER BY Field1, Field2");