Top "Recursive-query" questions

The ability to run recursive queries in SQL

Find Parent Recursively using Query

I am using postgresql. I have the table as like below parent_id child_id ---------------------- 101 102 103 104 104 105 105 106 I want to write …

postgresql recursive-query
How to select using WITH RECURSIVE clause

I have googled and read throug some articles like this postgreSQL manual page or this blog page and tried making …

sql postgresql recursive-query
Recursive stored functions in MySQL

I'm trying to make a function that recursively builds a path for a specific category CREATE FUNCTION getPath(inId INT) …

sql mysql recursion recursive-query stored-functions
Recursive JPA query?

Does JPA 2 have any mechanism for running recursive queries? Here's my situation: I have an entity E, which contains an …

java orm jpa-2.0 jpql recursive-query
get ALL last level children (leafs) from a node (hierarhical queries Oracle 11G)

I am trying and searching the way to get ALL last level children (leafs) from a node, in a hierchical …

sql oracle11g recursive-query hierarchical-query
Django self-recursive foreignkey filter query for all childs

I have this model with a self referencing Foreign Key relation: class Person(TimeStampedModel): name = models.CharField(max_length=32) parent = …

django model recursive-query
Recursive function in postgres

How to map below query to postgres function. WITH RECURSIVE source (counter, product) AS ( SELECT 1, 1 UNION ALL SELECT counter + 1, product * (…

postgresql plpgsql postgresql-9.2 recursive-query
sql select parent child recursive in one field

I do not know how to select query recursive.. id idparent jobNO -------------------------------- 1 0 1 2 1 2 3 1 3 4 0 4 5 4 5 6 4 6 how do the results like this With …

sql sql-server hierarchical-data recursive-query
Recursive select in SQL

I have an issue I just can't get my head around. I know what I want, just simply can't get …

sql sql-server-2008 recursive-query
Simple recursive query in Oracle

I'm currently having some trouble understanding and writing recursive queries. I understand that recursive queries are used to search through …

sql oracle recursive-query