We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73cbdb7 commit ebe2b40Copy full SHA for ebe2b40
doc/src/sgml/queries.sgml
@@ -2195,7 +2195,7 @@ SELECT sum(n) FROM t;
2195
WITH RECURSIVE included_parts(sub_part, part, quantity) AS (
2196
SELECT sub_part, part, quantity FROM parts WHERE part = 'our_product'
2197
UNION ALL
2198
- SELECT p.sub_part, p.part, p.quantity
+ SELECT p.sub_part, p.part, p.quantity * pr.quantity
2199
FROM included_parts pr, parts p
2200
WHERE p.part = pr.sub_part
2201
)
0 commit comments