explain plan for select * from ( select count(col_date) count_date, col_boln from `prqUnAll_0_v` group by col_boln having count(col_date) > 4888 union all select count(col_date) count_date, col_boln from `prqUnAll_1_v` group by col_boln having count(col_date) > 4888 ) t limit 0; |