Implement DISTINCT and HAVING for GROUP BY
The aim is to support a query like select distinct a from t, select a, b from t group by (a, b) having (a, b) > (1, 1) etc.
The aim is to support a query like select distinct a from t, select a, b from t group by (a, b) having (a, b) > (1, 1) etc.