db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <derby-...@db.apache.org>
Subject [jira] Created: (DERBY-765) Valid query fails with ERROR X0A00: The select list mentions column 'A' twice. This is not allowed in queries with GROUP BY or HAVING clauses. Try aliasing one of the conflicting columns to a unique name
Date Fri, 16 Dec 2005 00:26:45 GMT
Valid query fails with ERROR X0A00: The select list mentions column 'A' twice. This is not
allowed in queries with GROUP BY or HAVING clauses. Try aliasing one of the conflicting columns
to a unique name
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

         Key: DERBY-765
         URL: http://issues.apache.org/jira/browse/DERBY-765
     Project: Derby
        Type: Bug
  Components: SQL  
    Reporter: Kathey Marsden
    Priority: Minor
     Fix For: 10.2.0.0


ij> run 'repro.sql';
ij> create table bug280
(
   a int,
   b int
);
0 rows inserted/updated/deleted
ij> insert into bug280( a, b )
values ( 1, 1 ), ( 1, 2 ), ( 1, 3 ), ( 2, 1 ), ( 2, 2 );
5 rows inserted/updated/deleted
ij> select a+1 as a, a+1 as a from bug280 group by a;
ERROR X0A00: The select list mentions column 'A' twice. This is not allowed in queries with
GROUP BY or HAVING clauses. Try aliasing one of the conflicting columns to a unique name.

-- 
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


Mime
View raw message