The following JPQL query works just fine:
However, if we change the ORDER BY clause of the dense_rank() function so that instead of: dense_rank() over (order by createdOn ASC) we use this: dense_rank() over (order by createdOn, id ASC) The query fails with the following error:
|