Jul 6, 2011
Group_by example in MongoMapper
This is simple way to make a request on a column grouping in MongoMapper like as GROUP_BY in SQL:
seen from China
seen from Netherlands

seen from Switzerland
seen from China
seen from Argentina

seen from Brazil
seen from Brazil

seen from United States

seen from Malaysia
seen from United States

seen from Malaysia
seen from United States
seen from Philippines
seen from Maldives
seen from Philippines

seen from Maldives
seen from China
seen from United States
seen from China
seen from China
Group_by example in MongoMapper
This is simple way to make a request on a column grouping in MongoMapper like as GROUP_BY in SQL: