concept clause in category ejb

This is an excerpt from Manning's book EJB 3 in Action, Second Edition.
All this talk about JPQL queries has piqued your interest, hasn’t it? What do you say to continuing this line of thinking by going over the types of statements JPQL supports? Then we’ll discuss different elements of a JPQL statement, such as FROM and SELECT clauses, conditional statements, subqueries, and various types of functions. Finally, we’ll take a look at update and delete statements.
In addition, you can have a WHERE clause in a query along with a GROUP BY clause such as this:
SELECT c.user, COUNT(c.categoryId) FROM Category c WHERE c.createDate is BETWEEN :date1 and :date2 GROUP BY c.user HAVING COUNT(c.categoryId) > 5A WHERE clause in a query containing both the GROUP BY and HAVING clauses results in multistage processing. First, the WHERE clause is applied to filter the results. Then, the results are aggregated based on the GROUP BY clause. Finally, the HAVING clause is applied to filter the aggregated result.
Table 11.2. JPQL keywords reserved by the specification. You’re not allowed to give any of your variables these names.
Types
Reserved words
Statements and clauses SELECT, UPDATE, DELETE, FROM, WHERE, GROUP, HAVING, ORDER, BY, ASC, DESC Joins JOIN, OUTER, INNER, LEFT, FETCH Conditions and operators DISTINCT, OBJECT, NULL, TRUE, FALSE, NOT, AND, OR, BETWEEN, LIKE, IN, AS, UNKNOWN, EMPTY, MEMBER, OF, IS, NEW, EXISTS, ALL, ANY, SOME Functions AVG, MAX, MIN, SUM, COUNT, MOD, UPPER, LOWER, TRIM,POSITION, CHARACTER_LENGTH, CHAR_LENGTH, BIT_LENGTH, CURRENT_TIME, CURRENT_DATE, CURRENT_TIMESTAMP Thus, you can’t define the FROM clause like this