I have the impala query:
select id,zip,income
from zipcode_incomes
group by income
having income>avg(income)
but i am getting error, AnalysisException: select list expression not produced by aggregation output (missing from GROUP BY clause?). What mistake did I make?