You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kathey Marsden (JIRA)" <ji...@apache.org> on 2009/07/30 00:05:14 UTC
[jira] Updated: (DERBY-3276) Order by on aggregate always does a
sort even if the sort is not needed.
[ https://issues.apache.org/jira/browse/DERBY-3276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kathey Marsden updated DERBY-3276:
----------------------------------
This issue is marked as an improvement and a regression. If it is a regression should it be marked as a bug?
> Order by on aggregate always does a sort even if the sort is not needed.
> ------------------------------------------------------------------------
>
> Key: DERBY-3276
> URL: https://issues.apache.org/jira/browse/DERBY-3276
> Project: Derby
> Issue Type: Improvement
> Components: SQL
> Reporter: Manish Khettry
>
> See DERBY-3231 for details.
> A few different variations of queries that do not need a sort are:
> select b, max(a) from yy where a=5 group by b order by max(a) asc;
> select b, max(a) from yy where a=5 group by b order by max(a) desc;
> Also consider
> select a, sum(b) from yy group by a having sum(b) = 2 order by sum(b);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.