Is there a YEAR function in JOOQ?
I need to sum total per month. In SQL i write:
SELECT YEAR(myDate) as SomeYear, MONTH(myDate) as SomeMonth, SUM(someInt) AS SomeTotal FROM myTable GROUP BY YEAR(myDate), MONTH(myDate) ORDER BY YEAR(myDate), MONTH(myDate)
Is it possible in JOOQ?
Thx
Chris
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Some of those methods are available off the field name as well. I'm not sure about the year/month but you could probably do something like