--- a/doc/book/annexes/rql/language.rst Wed Jul 08 09:37:06 2015 +0200
+++ b/doc/book/annexes/rql/language.rst Thu Jul 09 16:43:56 2015 +0200
@@ -370,7 +370,7 @@
.. sourcecode:: sql
- DISTINCT ANY P WHERE V version_of P
+ DISTINCT Any P WHERE V version_of P
This will work, but is not efficient, as it will use the ``SELECT
DISTINCT`` SQL predicate, which needs to retrieve all projects, then
@@ -379,7 +379,7 @@
.. sourcecode:: sql
- ANY P WHERE EXISTS V version_of P
+ Any P WHERE EXISTS(V version_of P)
You can also use the question mark (`?`) to mark optional relations. This allows