Skip to main content

Grouping

Group by

val customerCount = label<Int>()

CustomerTable
.groupBy(CustomerTable.shop)
.select(CustomerTable.shop, count() as_ customerCount)
.perform(db)