I don’t have my computer handy, but yes thats pretty simple in jOOQ. Something close to:

ctx
.selectFrom(A)
.join(B)
.on(A.Name.like(concat(inline('%'), B.Name, inline('%')));

Note that it is unlikely that your database will be able to use an index for this join, so be certain your datasets don’t grow too big here or you’ll have bad performance.

Alf Lervåg

14. jul. 2023 kl. 18:32 skrev Kevin Jones <[email protected]>:

I have SQL something like this

SELECT * from A 
join B on A.Name like CONCAT ('%', B.Name, '%")

Is that possible in JOOQ?

Thanks,

Kevin

--
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/b22e6d9d-49ab-4cc9-aa57-12ba3e61cbbfn%40googlegroups.com.

--
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/1C05C75B-8E3D-486D-AB36-E1CDEFDD2199%40lervag.net.

Reply via email to