Thx Samir, this works.

Connection conn = DriverManager.getConnection("jdb........

Result<Record3<Integer, Integer, BigDecimal>> fetch1
                    = DSL.using(conn)
                            .select(DSL.year(TABLE.DATE),
                                    DSL.month(TABLE.DATE),
                                    DSL.sum(TABLE.MYBIGINT))
                            .from(TABLE)
                            .groupBy(DSL.year(TABLE.DATE), 
DSL.month(TABLE.DATE))
                            .orderBy(DSL.year(TABLE.DATE), 
DSL.month(TABLE.DATE))
                            .fetch();


Am Freitag, 23. Dezember 2016 04:58:19 UTC+1 schrieb Samir Faci:
>
> I think what you're looking for is:
> DSL.year(), DSL.month()  and DSL.sum() respectively.
>

-- 
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