I\'m trying to convert an existing query which looks for upcoming birthdays to use jOOQ. My original query - using MySQL, and a bit simplified - is
SELECT COUNT(
One way of solving the issue is using a String in the where clause. I'm writing it down here for completeness, but I think it misses the point of jOOQ
context.
selectCount().
from(PEOPLE).
where("DATE_ADD(people_dob, INTERVAL YEAR(CURDATE()) - YEAR(people_dob) YEAR)" +
" BETWEEN DATE_SUB(CURDATE(), INTERVAL 7 DAY) AND CURDATE()").