jhc-systems / sqlest

Write SQL in Scala
https://jhc-systems.github.io/sqlest/latest/api/
Apache License 2.0
30 stars 17 forks source link

Add `having` clause to sqlest #9

Closed brendanator closed 9 years ago

brendanator commented 10 years ago

having clauses in sql should only be used with aggregate functions and also imply a grouping is being applied to the select statement

I don't think it is easy to enforce this at a type level so as a first attempt this should just be implemented so that having is handled exactly the same as a where clause