bespokoid
6/27/2012 - 4:15 AM

Group selection by 48 records

Group selection by 48 records

select
  id DIV 48 as group_id,
  id,
  title,
  count(*) as rec_count
from test
  group by group_id