Re: Retreving count of rows returned by a join query

Поиск
Список
Период
Сортировка
От Sean Davis
Тема Re: Retreving count of rows returned by a join query
Дата
Msg-id 200705310608.09170.sdavis2@mail.nih.gov
обсуждение исходный текст
Ответ на Re: Retreving count of rows returned by a join query  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Phillip Smith"
Дата:
Сообщение: Re: Retreving count of rows returned by a join query
Следующее
От: Raimon Fernandez
Дата:
Сообщение: lock row outside transaction, if not ...