Re: select id,count(imdb_id) problem

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: select id,count(imdb_id) problem
Дата
Msg-id 20060410060738.GA28322@wolff.to
обсуждение исходный текст
Ответ на Re: select id,count(imdb_id) problem  (Ntina Papadopoulou <ntina23gr@freemail.gr>)
Ответы Re: select id,count(imdb_id) problem  (Ntina Papadopoulou <ntina23gr@freemail.gr>)
Список pgsql-novice
On Mon, Apr 10, 2006 at 08:52:11 +0300,
  Ntina Papadopoulou <ntina23gr@freemail.gr> wrote:
> >>select id,imdb_id,count(imdb_id) from "Movies" where id<10 group by
> >>imdb_id;
>
> The desired result is
> something like
> id | imdb_id | count
> ----+---------+-------
> 1 | 315733 | 9
> 10 | 335753 | 1
> 11 | 320000 | 15
> etc.

select imdb_id,count(imdb_id) from "Movies" where id<10 group by imdb_id;
might be closer to what you want.
However, the example that you gave doesn't match that exactly.
Maybe if you described what you are trying to do in more detail, people could
give you some better suggestions.

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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: select id,count(imdb_id) problem
Следующее
От: Ntina Papadopoulou
Дата:
Сообщение: Re: select id,count(imdb_id) problem