diff --git a/openjpa-project/src/doc/manual/jpa_overview_query.xml b/openjpa-project/src/doc/manual/jpa_overview_query.xml index 754a46055..3c8507e18 100644 --- a/openjpa-project/src/doc/manual/jpa_overview_query.xml +++ b/openjpa-project/src/doc/manual/jpa_overview_query.xml @@ -2814,7 +2814,7 @@ DISTINCT is specified. The following query returns the average price of all magazines: SELECT AVG(mag.price) FROM Magazine mag The following query returns the sum total cost of all the prices from all the -magazines published by 'Larry': SELECT SUM(mag.price) FROM Publisher pub JOIN pub.magazines mag pub.firstName = 'Larry' +magazines published by 'Larry': SELECT SUM(mag.price) FROM Publisher pub JOIN pub.magazines mag WHERE pub.firstName = 'Larry' The following query returns the total number of magazines: SELECT COUNT(mag) FROM Magazine mag