Tristan Caron
select count(distinct my_column) from my_table where my_other_column = true
MyTable.select { MyTable.myOtherColumn.eq(true) }.withDistinct().count()
MyTable .slice(MyTable.myColumn.countDistinct()) .select { MyTable.myOtherColumn.eq(true) }.first() .let { it[MyTable.myColumn.countDistinct()] } `
tapac
first()[MyTable.myColumn.countDistinct()]
let
MyTable.run { slice(myColumn.countDistinct()). select { myOtherColumn eq true }. first()[myColumn.countDistinct()] }
A modern programming language that makes developers happier.