Usage of LETTING Clause

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

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

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