You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/clauses/let.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,11 +122,11 @@ RETURN supplier, product
122
122
123
123
| "TechCorp" | "Laptop"
124
124
| "TechCorp" | "Phone"
125
+
| "TechCorp" | "Headphones"
125
126
| "Foodies Inc." | "Chocolate"
126
127
| "Foodies Inc." | "Coffee"
127
128
128
129
2+d|Rows: 4
129
-
130
130
|===
131
131
132
132
[[let-and-with-differences]]
@@ -200,7 +200,7 @@ The fact that `LET` does not drop variables means that it can be used to chain e
200
200
.Chaining expressions: comparing `LET` and `WITH`
201
201
=====
202
202
203
-
The below query shows that variables bound by a `LET` clause be referenced in subsequent `LET` clauses without being explicitly carried over.
203
+
The below query shows that variables bound by a `LET` clause be referenced by subsequent clauses without being explicitly carried over.
204
204
Specifically, the variable `isExpensive` is created in the first `LET` clause and referenced again in the subsequent clauses.
205
205
Note also that the variable `p`, bound in the `MATCH` clause, is available in the final `RETURN` clause despite not being referenced in any of `LET` clauses.
206
206
@@ -309,7 +309,7 @@ RETURN fullName, totalSpent
309
309
[[advanced-examples]]
310
310
== Advanced examples
311
311
312
-
The following scenarios demonstrates how `LET`, and its ability to chain expressions, can be used in more advanced queries:
312
+
The following examples demonstrates how `LET`, and its ability to chain expressions, can be used in more advanced queries:
313
313
314
314
.Scenario 1: Supplier notification on customer purchases and discounts
0 commit comments