• So do a GROUP BY first and then break the results into groups. After that, 'explode' the results back into multiple rows if needed.