support HAVING clause
- added HAVING clause. HAVING condition may contain
aggregates. Any column outside aggregate function
must be part of a grouping expression. E.g:
select sum(a) from t group by b having c > 1
Above query is invalid, becausec
is not a grouping expression.
Closes #390 (closed)