danielm
05/31/2018, 2:03 PMProduction
.innerJoin(Organization, { Organization.organizationId }, { Production.organizationId })
.innerJoin(Performance, { Production.productionId }, { Performance.productionId })
.slice(Production.name, Performance.date)
.select { Organization.id eq organizationId }
.orderBy(Performance.date)
.distinct()
.forEach {
println("${it[Production.name]}")
}
Tristan Caron
05/31/2018, 2:04 PMMyTable
.slice(MyTable.myColumn.countDistinct())
.select {
MyTable.myOtherColumn.eq(true)
}.first()
.let {
it[MyTable.myColumn.countDistinct()]
}