Path: dp-news.maxwell.syr.edu!spool.maxwell.syr.edu!drn.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
From: mikharakiri_nospaum@yahoo.com (Mikito Harakiri)
Newsgroups: comp.databases,comp.databases.theory
Subject: Re: Support of SQL recursive queries (over cyclic graphs)
Date: 27 Oct 2004 14:53:23 -0700
Organization: http://groups.google.com
Lines: 24
Message-ID: <8a529bb.0410271353.657fb8d5@posting.google.com>
References: <38b58a78.0410270341.2b7182c1@posting.google.com>
NNTP-Posting-Host: 148.87.1.171
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1098914004 11562 127.0.0.1 (27 Oct 2004 21:53:24 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 27 Oct 2004 21:53:24 +0000 (UTC)
Xref: dp-news.maxwell.syr.edu comp.databases:41447 comp.databases.theory:27566

giorgio.terracina@tiscalinet.it (Giorgio) wrote in message news:<38b58a78.0410270341.2b7182c1@posting.google.com>...
> Hi, 
> 
> Anyone knows if some DBMS supports SQL recursive queries over cyclic
> graphs?

DB2, Oracle already support them. SQLServer is adding recursive "with"
implementation next year.
 
> I mean, I know that some DBMS supports recursive queries (SQL3) but
> only on Tree-like data structures (e.g. finding an anchestor, etc.)

There is no such limitation. 
 
> I need to perform queries like "find all pairs of nodes connected by a
> path in a (possibly cyclic) graph", where the graph is represented by
> a relation Arc(x,y) stating all the pairs of nodes x and y directly
> linked by an arc in the graph.
> 
> I tried with Oracle and DB2, but they not seem to  support cyclic
> graphs, only trees.

You need to try harder. A chapter on Recursive Queries in DB2 cookbook
is a good start.
