db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manish Khettry (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-883) Enhance GROUP BY clause to support expressions instead of just column references.
Date Sat, 02 Sep 2006 00:16:23 GMT
    [ http://issues.apache.org/jira/browse/DERBY-883?page=comments#action_12432263 ] 
Manish Khettry commented on DERBY-883:

I think the issue can be closed. 

I'm not sure if we want to allow the use of grouping expressions in the having clause; i.e.

select c+1, count(*)
from t
group by c+1
having c+1 > 1;

I only have access to mysql, which doesn't allow this but does let you do

select c, count(*)
from t
group by c
having c > 1;

If we do, then we need another bug or a subtask of this issue.

> Enhance GROUP BY clause to support expressions instead of just column references.
> ---------------------------------------------------------------------------------
>                 Key: DERBY-883
>                 URL: http://issues.apache.org/jira/browse/DERBY-883
>             Project: Derby
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions:,
>         Environment: JDK 1.5.0_05
>            Reporter: Lluis Turro
>         Assigned To: Manish Khettry
>             Fix For:
>         Attachments: 883.patch.txt, 883.patch3.txt, 883.patch4.txt, 883.patch5.txt, 883.patch6.txt,
883.patch6.txt, 883.patch7.txt
> This select would return an error syntax on finding "(" after month if group by clause:
> select idissue, month(creation), year(creation), count(distinct idissue)
> where 
>   ....
> group by idissue, month(creation), year(creation)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message