Skip to content

Commit b4e5c80

Browse files
with fixes
1 parent 5623737 commit b4e5c80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/ROOT/pages/clauses/with.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Variable `p` not defined
140140
----
141141
MATCH (supplier:Supplier)-[r]->(product:Product)
142142
WITH *
143-
RETURN s.name AS company,
143+
RETURN supplier.name AS company,
144144
type(r) AS relType,
145145
product.name AS product
146146
----
@@ -245,7 +245,7 @@ ORDER BY price
245245
| "Chocolate" | 5 | TRUE | 'Budget'
246246
| "Coffee" | 10 | TRUE | 'Budget'
247247
| "Headphones" | 250 | TRUE | 'Budget'
248-
| "Phone" | 600 | FALSE | 'High-end'
248+
| "Phone" | 500 | FALSE | 'High-end'
249249
| "Laptop" | 1000 | FALSE | 'High-end'
250250

251251
4+d|Rows: 5
@@ -357,7 +357,7 @@ ORDER BY discountRates
357357
== Ordering and pagination
358358

359359
`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.
361361

362362
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.
363363

@@ -457,7 +457,7 @@ WITH p
457457
ORDER BY p.price DESC
458458
LIMIT 1
459459
MATCH (p)<-[:BUYS]-(c:Customer)
460-
RETURN p.name AS product
460+
RETURN p.name AS product,
461461
p.price AS price,
462462
collect(c.firstName) AS customers
463463
----

0 commit comments

Comments
 (0)