Hi Adithya,

Thanks for your message. The QUALIFY clause is available in all editions if
the underlying dialect supports it natively. To emulate it, we use the
QUALIFY to derived table transformation, a transformation that relies on
commercial API, and is thus only available in commercial editions, see:
https://www.jooq.org/doc/latest/manual/sql-building/queryparts/sql-transformation/transform-qualify/

It's probably worth referring to that transformation section from the
QUALIFY section of the manual. I'll change that right away.

I hope this helps,
Lukas

On Tue, Jun 20, 2023 at 12:53 PM adithya kamath <[email protected]> wrote:

>
> Just realised, it's a slightly more complicated first part before qualify
> with joins
> On Tuesday, 20 June 2023 at 16:22:40 UTC+5:30 adithya kamath wrote:
>
>> I'm trying to implement qualify using
>>     var result2 = ctx.select(PRODUCT_MASTER.PRODUCT_LINE,
>>         PRODUCT_MASTER.PRODUCT_NAME, PRODUCT_MASTER.PRODUCT_SCALE)
>>         .from(PRODUCT_MASTER)
>>
>> .qualify(rowNumber().over().orderBy(PRODUCT_MASTER.PRODUCT_LINE.desc()).between(start,
>> end))
>>         .fetchInto(ProductMaster.class)
>>
>>
>> But I'm getting data access exception saying it is not available for OSS,
>> but Saw some links like this
>> <https://www.jooq.org/doc/latest/manual/sql-building/sql-statements/select-statement/qualify-clause/>
>>  which
>> show it can be used with OSS. Some other examples like this
>> <https://www.jooq.org/doc/latest/manual/sql-building/column-expressions/window-functions/window-order/>
>>  and
>> this
>> <https://www.jooq.org/doc/latest/manual/sql-building/column-expressions/window-functions/window-frame/>
>>  showing
>> it is available for OSS. Possibly I'm missing something, or a simple part
>> of the above that is not OSS?
>
> --
> 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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jooq-user/7628394e-e00c-4011-bbae-b7a145bbe34dn%40googlegroups.com
> <https://groups.google.com/d/msgid/jooq-user/7628394e-e00c-4011-bbae-b7a145bbe34dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jooq-user/CAB4ELO51oum7WJE-nSVMtR3R%2Bv5oDMdUpQ2CWRhSV3ED94753Q%40mail.gmail.com.

Reply via email to