Re: [SQL] Categories and subcategories : more details

2001-03-20 Thread Josh Berkus
Rachel, See below: > Examples : > > table CATEG : > ida categ > 1X > 2Y > 3Z > > table SUBCATEG : > idb subcateg ida > 1 x1 1 > 2 x2 1 > 3 x3 1 > 4 x4 1 > 5

[SQL] Categories and subcategories : more details

2001-03-20 Thread Rachel Coin
> 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. Examples : table CATEG : ida ca

Re: [SQL] Categories and subcategories

2001-03-20 Thread Josh Berkus
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

[SQL] Categories and subcategories

2001-03-20 Thread Rachel Coin
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 -