Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: tree-oriented query against table-oriented data

by renodino (Curate)
on Jul 01, 2006 at 19:45 UTC ( #558800=note: print w/replies, xml ) Need Help??

in reply to tree-oriented query against table-oriented data

...whether such a query syntax exists as either a published spec...

(I'm assuming you're after SQL syntax here, tho its not explicitly stated)

Tho not directly Perl related, there are implementations, and (conveniently) O'Reilly appears to have provided an answer as an online sample chapter for the SQL Pocket Guide.

You may also find that careful use of GROUP BY will accomplish much of what you're trying to do, albeit with some duplicate info in the rows.

A quick Google of "sql hierarchical queries" generates quite a few related hits, as does "sql tree queries", so you've got some websifting to do...

  • Comment on Re: tree-oriented query against table-oriented data

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://558800]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2021-03-04 12:56 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (104 votes). Check out past polls.