Description
Error: org.apache.derby.client.am.SqlException: Column 'MODEL0_.COL_0_0_' is either not in any table in the FROM list or appears within a join specification and is outside the scope of the join specification or appears in a HAVING clause and is not in the GROUP BY list. If this is a CREATE or ALTER TABLE statement then 'MODEL0_.COL_0_0_' is not a column in the target table., SQL State: 42X04, Error Code: -1
for
select
model0_.balance as col_0_0_,
count as col_1_0_
from
account model0_
group by
model0_.balance
having
count > 1
Attachments
Attachments
Issue Links
- is related to
-
DERBY-681 Eliminate the parser's rewriting of the abstract syntax tree for queries with GROUP BY and/or HAVING clauses
- Closed
- relates to
-
DERBY-3094 Grouping of expressions causes NullPointerException
- Closed
-
DERBY-681 Eliminate the parser's rewriting of the abstract syntax tree for queries with GROUP BY and/or HAVING clauses
- Closed
-
DERBY-2457 Use of column aliases in group by / having clauses can cause queries to fail
- Closed