sql question regarding count(*)

Поиск
Список
Период
Сортировка
От Rajesh Kumar Mallah
Тема sql question regarding count(*)
Дата
Msg-id 200303061702.26339.mallah@trade-india.com
обсуждение исходный текст
Список pgsql-sql
When does count(*) returns "o rows" ?
and when does it return 1 row value being 0.

tradein_clients=# SELECT count(*)   from public.eyp_listing  where sno> 0 and 
amount> 0  group by sno,branch,edition having count(distinct userid) > 1 ;count
-------
(0 rows)

tradein_clients=#
tradein_clients=#
tradein_clients=# SELECT count(*) from public.users where userid=-1;count
-------    0
(1 row)

tradein_clients=#

-- 

Regds
Mallah

----------------------------------------
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.


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

Предыдущее
От: "Tomasz Myrta"
Дата:
Сообщение: Re: INTERSECT / where id IN (etc..)
Следующее
От: Tomasz Myrta
Дата:
Сообщение: Re: sql question regarding count(*)