L.20 What is the purpose of an AQL FOR loop?
The AQL FOR loop is similar to the FROM clause of an SQL query: it specifies a collection to
L.21 What is the purpose of an AQL RETURN clause?
The AQL RETURN clause is similar to the SELECT clause in SQL, but much more flexible. It
L.22 What is the purpose of the AQL FILTER operation?
The AQL FILTER operation is similar to an SQL WHERE clause: it places conditions on which
values/documents are to be retained for further processing by the query.
L.23 What are two ways to remove duplicates in AQL?
As in SQL, the RETURN clause has an optional DISTINCT keyword that will ensure no
L.24 What AQL operation can turn an array of arrays into an array?
The AQL FLATTEN operation will turn an array of arrays into an array. Note that this operation
L.25 What AQL syntax would be used to access the fourth customer in an array of customers
in the VRG3 database?
Array indexes in AQL begin with 0. Thus the fourth customer in any customer array would be
L.26 Describe how the “.” notation of SQL has been extended in AQL.
In SQL, the “.” notation is used to separate a table name from a column name, e.g.
L.27 What is the AQL syntax used to do grouping? What two things does the syntax allow us
to name, and why is that useful? How does it extend the similar capabilities of SQL?