I have a table Table1 with 6 columns.
Here is the sql statement that i need to map.
Select *,count(ID) as IdCount from Table1;
Now, the sql query result will be 7 columns ( 6 Table1 columns and 1 IdCount column). But when i implement the same in Jooq with this query, it only gets a single column "IDCount".
SelectQuery q = factory.selectQuery();
q.addSelect(Table1.ID.count().as("IdCount"));
q.addFrom(Table1.TABLE1);
Now, the resultant recordset have only a single column "IdCount" while what i need is all the columns and one additional column "IdCount". I want 7 columns in Jooq too.