Top "Hierarchical-data" questions

Hierarchical data reflects a set of parent-child relationships.

How to create a MySQL hierarchical recursive query

I have a MySQL table which is as follows: id | name | parent_id 19 | category1 | 0 20 | category2 | 19 21 | category3 | 20 22 | category4 | 21 ...... Now, I want …

mysql sql hierarchical-data recursive-query
What are the options for storing hierarchical data in a relational database?

Good Overviews Generally speaking, you're making a decision between fast read times (for example, nested set) or fast write times (…

sql database tree relational-database hierarchical-data
What is the most efficient/elegant way to parse a flat table into a tree?

Assume you have a flat table that stores an ordered tree hierarchy: Id Name ParentId Order 1 'Node 1' 0 10 2 'Node 1.1' 1 10 3 …

sql algorithm recursion tree hierarchical-data
SQL recursive query on self referencing table (Oracle)

Lets assume I have this sample data: | Name | ID | PARENT_ID | ----------------------------- | a1 | 1 | null | | b2 | 2 | null | | c3 | 3 | null | | a1.d4 | 4 | 1 | | …

sql database oracle plsql hierarchical-data
Simplest way to do a recursive self-join?

What is the simplest way of doing a recursive self-join in SQL Server? I have a table like this: PersonID | …

sql sql-server recursion hierarchical-data self-join
What type of NoSQL database is best suited to store hierarchical data?

What type of NoSQL database is best suited to store hierarchical data? Say for example I want to store posts …

database tree nosql hierarchical-data
How to represent a data tree in SQL?

I'm writing a data tree structure that is combined from a Tree and a TreeNode. Tree will contain the root …

sql tree hierarchical-data
Sql query for tree table

I have a table with tree structure: id parentId name ---------------- 1 0 Category1 2 0 Category2 3 1 Category3 4 2 Category4 5 1 Category5 6 2 Category6 7 3 Category7 In sql …

sql sql-server sql-server-2008 hierarchical-data
Cannot implicitly convert type 'System.Collections.Generic.List<T>' to 'System.Linq.IQueryable<T>'

I am trying to create a query in my domain service (VS 2010 Silverlight Business Application) that returns the results from …

c# visual-studio-2010 linq-to-entities hierarchical-data silverlight-5.0
Is it possible to query a tree structure table in MySQL in a single query, to any depth?

I'm thinking the answer is no, but I'd love it it anybody had any insight into how to crawl a …

mysql sql database-design data-structures hierarchical-data