This is my sql statement:
select count(*) from source s
join(select id as I from source where name is not null) e
on s.name = e.I
Here is what I have in java
Source s = SOURCE.as("s");
TableLike<?> e = create.select(SOURCE.ID.as("I"))
.from(SOURCE)
.where(SOURCE.NAME.isNotNull()
.asTable().as("e");
create.selectCount()
.from(s)
.join(e)
.on(s.NAME.equal(e.I))
.fetchOne().value1();
I think that TableLike is not the right type because I get an error when I
try to do e.I
--
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/groups/opt_out.