Description
create table(a int, b int); select a, max(b) as c1, b as c2 from tbl where a = b group by a, b having c1 = 1
this query fails in 2.0, but works in 1.6
create table(a int, b int); select a, max(b) as c1, b as c2 from tbl where a = b group by a, b having c1 = 1
this query fails in 2.0, but works in 1.6