Query

Поиск
Список
Период
Сортировка
От Ashish Karalkar
Тема Query
Дата
Msg-id 912434.25800.qm@web94312.mail.in2.yahoo.com
обсуждение исходный текст
Ответы Re: Query  (Richard Huxton <dev@archonet.com>)
Re: Query  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список pgsql-general
Hello there,
I am having data in table something like below:

user_id      type_id
1               1
1               2
2               1
3               3
4               3  
5               1  
1               10
7               6

What i want is the count of all user group by type_id  who are subscribed to only one type e.g

type_id   count
1                2
6                1

any suggestions?

Thanks in advance


With regards
Ashish




Unlimited freedom, unlimited storage. Get it now

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Problems with acessing xml functions on other database
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Query