Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: a row disapearing


  • From: Rafal Pietrak <rafal(at)zorro(dot)isa-geek(dot)com>
  • To: pgsql-general(at)postgresql(dot)org
  • Subject: Re: a row disapearing
  • Date: Sat, 27 May 2006 21:06:16 +0200
  • Message-id: <1148756777(dot)14902(dot)38(dot)camel(at)model(dot)home(dot)waw(dot)pl>

On Sat, 2006-05-27 at 11:51 -0700, Richard Broersma Jr wrote:
> select  count(xxx.id) as cnt, 
>         xxx.id, 
>         xxx_grp.id as grpid, 
>         xxx_grp.grp 
> from    xxx 
> right join xxx_grp 
> on      (xxx.id = xxx_grp.id) 
> group by xxx.id, grpid, xxx_grp.grp 
> order by xxx_grp.id;
> 
>  cnt | id | grpid |  grp
> -----+----+-------+--------
>    0 |    |     0 | group0
>    1 |  1 |     1 | group1
>    2 |  2 |     2 | group2

The count() in my case may easyly reach 10k (so the group table wont end
up too light, and it have to have a margin), but that's something
concrete to start with.

Thenx.

-- 
-R



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group