Re: A tricky sql-query...
Mark Stosberg <mark@summersault.com>
From: Mark Stosberg <mark@summersault.com>
To: pgsql-sql@postgresql.org
Date: 2003-11-03T00:42:46Z
Lists: pgsql-sql
On 2003-10-22, Timo <siroco@suomi24.fi> wrote: > > You can't have any recursion in an pure sql-query, can you? It depends on how you think of recursion, I'd say. You join on the same table a number of times, by giving it a different alias each time. You have to manually specify (or generate with application code) all these aliases and joins, though. Sometimes people use this technique to implement tree structures in SQL. Mark -- http://mark.stosberg.com/