Re: Retreving count of rows returned by a join query - Mailing list pgsql-novice

From Sean Davis
Subject Re: Retreving count of rows returned by a join query
Date
Msg-id 200705310608.09170.sdavis2@mail.nih.gov
Whole thread Raw
In response to Re: Retreving count of rows returned by a join query  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
List pgsql-novice
On Thursday 31 May 2007 05:17, Jasbinder Singh Bali wrote:
> with count(*) i want other  rows as well
> something like
>
> select count(*) , a.3 from a, b where a.3 = b.3;

That would require two queries unless you want to use subqueries:

select count(*) from a,b where a.3=b.3;

select a.3 from a,b where a.3=b.3;

Sean

pgsql-novice by date:

Previous
From: "Phillip Smith"
Date:
Subject: Re: Retreving count of rows returned by a join query
Next
From: Raimon Fernandez
Date:
Subject: lock row outside transaction, if not ...