From: Josh Berkus <josh@agliodbs.com>
To: Rachel Coin <rachel@derniere-minute.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Categories and subcategories
Date: Tue, 20 Mar 2001 07:44:23 -0800
Message-ID: <web-27136@davinci.ethosmedia.com> (raw)
In-Reply-To: <002601c0b11a$8e1e7280$6101a8c0@spidinfo.com>
Rachel,
> I have two tables : the first for categories and the second for
> subcategories.I want to get a result like Yahoo! For each category ,
> the sql
> query must return maximum 3 subcategories. I can't use "limit" in a
> subquery
> because I use Postgresql 7.0.
I can think of several ways to do this, but they all depend on what
display results you're trying to get. Perhaps you could post some
simplified tabledefs, and the result you want to see?
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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-sql@postgresql.org
Cc: josh@agliodbs.com, rachel@derniere-minute.org
Subject: Re: Categories and subcategories
In-Reply-To: <web-27136@davinci.ethosmedia.com>
References: <002601c0b11a$8e1e7280$6101a8c0@spidinfo.com> <web-27136@davinci.ethosmedia.com>
* 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