Tag: group by optimization in SQL