U
Size: a a a
U
GK
database
.from(t)
.select(t.departmentId, avg(t.salary))
.groupBy(t.departmentId)
.having { avg(t.salary) greater 100.0 }
.forEach { row ->
println("${row.getInt(1)}:${row.getDouble(2)}")
}
VP
VP
U
U
U
U
U
VP
I
selectProductSt :: Statement ProductId ProductEntity
selectProductSt = Statement sql (encoder :: E.Params String) decoder True
where
sql = "select id, name, price, created_at from products where id = $1"
encoder = E.param (E.nonNullable stringEncoder)
decoder = D.singleRow productEntityDecoder
AW
AW
U
Kd
VP
GK
AW
Kd
AW