Select column1, column2, count(*) from table_name whwre column3_val 350 group by column1, column2
HAVING count(*) 15;
The HAVING is simply equivalent to a WHERE clause after the group by has executed and before the select part of the query is computed.