Content
SQL report question - determine parent
Added by Mike McEldowney about 2 years ago
I'm trying to develop a report directly from the "openproject" Postgresql database for workpackages. How should I determine the parent workpackage for a particular workpackage in SQL?
Replies (1)
Hi Mike,
The parent of a work package as all other relations are modeled through the relations table as a direct acyclic graph
To get the immediate parent, use this SQL:
Best
Oliver