You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Patrick Linskey (JIRA)" <ji...@apache.org> on 2008/01/16 04:55:34 UTC
[jira] Resolved: (OPENJPA-490) JPQL extension: aggregates in ORDER
BY
[ https://issues.apache.org/jira/browse/OPENJPA-490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Linskey resolved OPENJPA-490.
-------------------------------------
Resolution: Fixed
> JPQL extension: aggregates in ORDER BY
> --------------------------------------
>
> Key: OPENJPA-490
> URL: https://issues.apache.org/jira/browse/OPENJPA-490
> Project: OpenJPA
> Issue Type: New Feature
> Affects Versions: 0.9.0, 0.9.6, 0.9.7, 1.0.0, 1.0.1
> Reporter: Patrick Linskey
> Fix For: 1.1.0
>
>
> JPQL only allows state fields in ORDER BY clauses. It is useful to order by aggregates when doing a GROUP BY as well. Example:
> select sum(o.shortField) from AllFieldTypes o
> group by o.intField
> order by sum(o.shortField) asc
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.