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.

Reply via email to