pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Categories and subcategories
2+ messages / 2 participants
[nested] [flat]

* Categories and subcategories
@ 2001-03-20 08:48 Rachel Coin <rachel@derniere-minute.org>
  2001-03-20 15:44 ` Re: Categories and subcategories Josh Berkus <josh@agliodbs.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Rachel Coin @ 2001-03-20 08:48 UTC (permalink / raw)
  To: pgsql-sql

Hi,

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.

Any help?

Regards,


Rachel




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Categories and subcategories
  2001-03-20 08:48 Categories and subcategories Rachel Coin <rachel@derniere-minute.org>
@ 2001-03-20 15:44 ` Josh Berkus <josh@agliodbs.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Josh Berkus @ 2001-03-20 15:44 UTC (permalink / raw)
  To: Rachel Coin <rachel@derniere-minute.org>; +Cc: 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 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-03-20 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-20 08:48 Categories and subcategories Rachel Coin <rachel@derniere-minute.org>
2001-03-20 15:44 ` Josh Berkus <josh@agliodbs.com>

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