having
clause allows to formulate rules which specify which aggregated rows are returned. having
clause. group by
with having
, the order in which these clauses appear is unimportant. Both of the following two queries are equivalent: select sum(num) sum_num, txt from tq84_tab group by txt having sum(num) > 0; select sum(num) sum_num, txt from tq84_tab having sum(num) > 0 group by txt;
having
clause.