Top "Recursive-query" questions

The ability to run recursive queries in SQL

Oracle Connect By Prior for Recursive Query Syntax

Suppose I had the following table in my oracle DB: ID: Name: Parent_ID: 123 a 234 345 b 123 234 c 234 456 d 345 567 e 567 678 f 567 …

sql database oracle plsql recursive-query
How does a Recursive CTE run, line by line?

I think I've got the format of Recursive CTEs down well enough to write one, but still find myself frustrated …

sql recursive-query
SQL Server recursive query

I am new to SQL Server development. Most of my experience has been done with Oracle. suppose I have the …

sql-server sql-server-2005 sql-server-2008 recursive-query
Oracle SQL Analytic query - recursive spreadsheet-like running total

I have the following data, composed of the A value, ordered by MM (month). The B column is computed as …

sql oracle recursive-query analytic-functions cumulative-sum
Tree structure in sql in Oracle.How to show tree,child nodes and parent nodes in SQL Oracle

I would like to show a tree structure in SQL with child nodes and parent nodes. I have a table …

sql oracle hierarchical-data recursive-query connect-by
Create nested json object using php mysql

I have two tables, table 1 has 2 fields (question_pk, question_name) and table 2 has 4 fields(ans_pk, options, question_fk …

php mysql json recursive-query
PostgreSQL WITH RECURSIVE performance

I have a simple question. Somehow I was unable to find a definitive answer. How much is WITH RECURSIVE syntax …

database postgresql recursive-query with-statement
How to use a recursive query as a subquery?

I need to write a query that calls a recursive query many times. I was not able to figure out …

sql-server tsql recursive-query
Recursive query used for transitive closure

I've created a simple example to illustrate transitive closure using recursive queries in PostgreSQL. However, something is off with my …

sql postgresql common-table-expression recursive-query transitive-closure-table
recursive path aggregation and CTE query for top-down tree postgres

I'm trying to write a query to produce a list of all nodes in a tree given a root, and …

postgresql common-table-expression recursive-query