Re: SELECT syntax question - combining COUNT and DISTINCT - Mailing list pgsql-novice

From zmilos@sympatico.ca (zhix)
Subject Re: SELECT syntax question - combining COUNT and DISTINCT
Date
Msg-id c59f4459.0310061851.6d5f9e1a@posting.google.com
Whole thread Raw
In response to Re: SELECT syntax question - combining COUNT and DISTINCT  (paul@entropia.co.uk)
List pgsql-novice
This should do:

select pdb_id,count(*)
from   chain
where  chain_id = 'A'
group by pdb_id;

rgds,
zhix

pgsql-novice by date:

Previous
From: Brian Slinn
Date:
Subject: Trigger return value
Next
From: Bruno LEVEQUE
Date:
Subject: Re: 7.4Beta2 installation not finding OpenSSL