Skip to content
Advertisement

jooq query for sql query with analytical function

i have sql query like

JavaScript

i need to write in jOOQ, any help. I tried the below

JavaScript

Also,is there any way to avoid listing all columns in select. Instead of

JavaScript

Something like

JavaScript

Advertisement

Answer

A derived table can be constructed like this:

JavaScript

Also, is there any way to avoid listing all columns in select

You’re looking for Table.asterisk() to produce the asterisk in SQL, or Table.fields() to produce all fields from your generated code.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement