From ca2dd1088b64e34f52c9c4801060710f5df3ab1e Mon Sep 17 00:00:00 2001 From: mahuntington Date: Wed, 15 Feb 2023 18:36:03 -0500 Subject: [PATCH] Update 'README.md' --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 59a2e94..f8dbc4c 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,9 @@ WITH RECURSIVE parent_path (id, title, description, path) AS FROM items WHERE parent_id IS NULL UNION ALL - SELECT i.id, i.title, i.description, CONCAT(ip.path, ' > ', i.title) - FROM parent_path AS ip JOIN items AS i - ON ip.id = i.parent_id + SELECT items.id, items.title, items.description, CONCAT(parent.path, ' > ', items.title) + FROM parent_path AS parent JOIN items + ON parent.id = items.parent_id ) SELECT * FROM parent_path WHERE id = 38; ``` \ No newline at end of file