Usage of LETTING Clause


#1

Can anybody please tell me about the usage of LETTING Clause with perfect example. In the DP4 doesn’t have any example.

Thank you

Regards,
Abdul Rahim


#2

Please edit this post and change it to category ‘N1QL’ so that it becomes easier to track.


#3

LETTING clause is used with GROUP BY and comes after GROUP BY
https://developer.couchbase.com/documentation/server/current/n1ql/n1ql-language-reference/from.html
https://developer.couchbase.com/documentation/server/5.1/n1ql/n1ql-language-reference/groupby.html