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/with.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ Variable `p` not defined
140
140
----
141
141
MATCH (supplier:Supplier)-[r]->(product:Product)
142
142
WITH *
143
-
RETURN s.name AS company,
143
+
RETURN supplier.name AS company,
144
144
type(r) AS relType,
145
145
product.name AS product
146
146
----
@@ -245,7 +245,7 @@ ORDER BY price
245
245
| "Chocolate" | 5 | TRUE | 'Budget'
246
246
| "Coffee" | 10 | TRUE | 'Budget'
247
247
| "Headphones" | 250 | TRUE | 'Budget'
248
-
| "Phone" | 600 | FALSE | 'High-end'
248
+
| "Phone" | 500 | FALSE | 'High-end'
249
249
| "Laptop" | 1000 | FALSE | 'High-end'
250
250
251
251
4+d|Rows: 5
@@ -357,7 +357,7 @@ ORDER BY discountRates
357
357
== Ordering and pagination
358
358
359
359
`WITH` can order and paginate results if used together with the xref:clauses/order-by.adoc[`ORDER BY`], xref:clauses/limit.adoc[`LIMIT`], and xref:clauses/skip.adoc[`SKIP`] subclauses.
360
-
If so, these subclauses be understood as part of the result manipulation performed by `WITH` -- not as a standalone clause -- before results are passed on to subsequent clauses.
360
+
If so, these subclauses should be understood as part of the result manipulation performed by `WITH` -- not as standalone clauses -- before results are passed on to subsequent clauses.
361
361
362
362
In the below query, the results are ordered in a descending order by which `Customer` has spent the most using `ORDER BY` before they are passed on to the final `RETURN` clause.
0 commit comments