should be it
This commit is contained in:
9
external/duckdb/benchmark/ldbc/queries/interactive-short-6.sql
vendored
Normal file
9
external/duckdb/benchmark/ldbc/queries/interactive-short-6.sql
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
WITH RECURSIVE chain(parent, child) as(
|
||||
SELECT m_c_replyof, m_messageid FROM message where m_messageid = 687194767741
|
||||
UNION ALL
|
||||
SELECT p.m_c_replyof, p.m_messageid FROM message p, chain c where p.m_messageid = c.parent
|
||||
)
|
||||
select f_forumid, f_title, p_personid, p_firstname, p_lastname
|
||||
from message, person, forum
|
||||
where m_messageid = (select coalesce(min(parent), 687194767741) from chain)
|
||||
and m_ps_forumid = f_forumid and f_moderatorid = p_personid;
|
||||
Reference in New Issue
Block a user