From: Rob Hoopman <uithuis@dds.nl>
To: pgsql-general@postgresql.org
Subject: Recursive queries
Date: Thu, 14 Sep 2000 16:45:48 +0200
Message-ID: <39C0E49C.3060802@dds.nl> (raw)
Hi all,
I have a question that probably is more apropriate for pgsql-dummies but
since I use postgres and don't know what list would be more
apropriate... here goes:
I have some data that I want to be able to search by geographic location.
The geographic locations are stored in a table with a reference to their
parent location (i.e. Germany has a reference to Europe whis is in the
same table)
I am wondering what the best aproach is when I want to perform a search
by location and need to include all child locations.
For example I want to return all results applying to the European Union
which means it should include all childcountries, provinces, cities, etc
in the search.
Any suggestions, or pointers to sources of info?
Thanks,
Rob Hoopman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: uithuis@dds.nl
Subject: Re: Recursive queries
In-Reply-To: <39C0E49C.3060802@dds.nl>
References: <39C0E49C.3060802@dds.nl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox