Re: Categories and subcategories - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Categories and subcategories
Date
Msg-id web-27136@davinci.ethosmedia.com
Whole thread Raw
In response to Categories and subcategories  ("Rachel Coin" <rachel@derniere-minute.org>)
List pgsql-sql
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
informationtechnology      josh@agliodbs.com  and data management solutions       (415) 565-7293 for law firms, small
businesses       fax 621-2533   and non-profit organizations.      San Francisco
 


pgsql-sql by date:

Previous
From: juerg.rietmann@pup.ch
Date:
Subject: postmaster not starting on my MS WIN NT
Next
From: "Rachel Coin"
Date:
Subject: Categories and subcategories : more details