Re: Retreving count of rows returned by a join query

Поиск
Список
Период
Сортировка
От Phillip Smith
Тема Re: Retreving count of rows returned by a join query
Дата
Msg-id 01c401c7a362$d6743150$9b0014ac@wbaus090
обсуждение исходный текст
Ответ на Retreving count of rows returned by a join query  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
Ответы Re: Retreving count of rows returned by a join query  ("Jasbinder Singh Bali" <jsbali@gmail.com>)
Список pgsql-novice

Works for me:

 

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

 

-----Original Message-----
From: pgsql-novice-owner@postgresql.org [mailto:pgsql-novice-owner@postgresql.org] On Behalf Of Jasbinder Singh Bali
Sent: Thursday, 31 May 2007 18:32
To: Novice Postgresql-list
Subject: [NOVICE] Retreving count of rows returned by a join query

 

I have a query in which I have joins.

something like

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

how can I fetch the number of rows returned by this query.
normal count(*) doesn't work in this context as desired.

Thanks,
~Jas


*******************Confidentiality and Privilege Notice*******************

The material contained in this message is privileged and confidential to the addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to such person, you may not copy or deliver this message to anyone, and you should destroy it and kindly notify the sender by reply email.

Information in this message that does not relate to the official business of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall not be liable for direct, indirect or consequential loss arising from transmission of this message or any attachments

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Jasbinder Singh Bali"
Дата:
Сообщение: Retreving count of rows returned by a join query
Следующее
От: "Jasbinder Singh Bali"
Дата:
Сообщение: Re: Retreving count of rows returned by a join query