I'm trying to write a JPQL Query that counts the number of records in
a set. I tried using a ReportQuery (with the origional JPQL) but that
has problems if the JPQL query is already returning results. The
ReportQuery tries to add the count to the results list which causes an
sql error because the other results in the origional query are not
grouped. I think I need to have something like:
select count (obj) from (select obj2 from table obj2) obj
But that does not work. Is there a way I can suppress the columns in
the ReportQuery (made from a JPQL query) that are not grouped or is
there some way to make the JPQL above work?
--
Jeremiah Johnson
Kunz Leigh & Associates
Phone: 517-488-7393
_______________________________________________
eclipselink-users mailing list
eclipselink-users@...
https://dev.eclipse.org/mailman/listinfo/eclipselink-users