I think what you're looking for is: DSL.year(), DSL.month() and DSL.sum() respectively.
-- Samir Faci On Thu, Dec 22, 2016 at 4:48 PM, Christian Master <[email protected]> wrote: > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Thank you Samir Faci https://keybase.io/csgeek -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
