Thank you, your answer helped!
I now have the query but I'm stuck: the query should show one row for each business entity and the (multiple) interactions where their participant objects occur should be listed in a single field using the LIST() function of Firebird.
In below example entity Cl1 is used in 2 interactions. Since I use LIST(), I should have only 1 row as result, showing both interaction names in a single field separated by a semicolon; instead I get 2 separate rows. Anyone has idea why the LIST() commend fails here?
p.s. EA version 1310
p.s. the " collation is for clean copy/paste to Excel
The query:
SELECT
t_object.ea_guid AS CLASSGUID,
t_object.Object_Type AS CLASSTYPE,
...
'"' || REPLACE (REPLACE (REPLACE (REPLACE (COALESCE(t_object.Name, ''), ASCII_CHAR(13), ' '), ASCII_CHAR(10), '. '), ASCII_CHAR(9), ' '), ASCII_CHAR(34), '''') || '"' AS "Name",
'"' || (SELECT LIST(t1.Name, '; ') FROM t_object t1 WHERE t1.Object_Type = 'Interaction' AND t1.Object_ID = participant.ParentID) || '"' AS "Interaction",
...
FROM t_object
...
LEFT OUTER JOIN t_object participant ON t_object.Object_ID = participant.Classifier
WHERE t_object.Package_ID IN (#Branch#) ...
ORDER BY t_object.Object_Type, t_object.Name
The result is:
..."Cl1","Ensure material availability based on complete, correct, timely factory site MBOM",...
..."Cl1","Require fully accurate MRP result",...
It should be:
..."Cl1","Ensure material availability based on complete, correct, timely factory site MBOM; Require fully accurate MRP result",...
Thanks for any help!!