Re: select id,count(imdb_id) problem - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: select id,count(imdb_id) problem
Date
Msg-id 20060410060738.GA28322@wolff.to
Whole thread Raw
In response to Re: select id,count(imdb_id) problem  (Ntina Papadopoulou <ntina23gr@freemail.gr>)
Responses Re: select id,count(imdb_id) problem  (Ntina Papadopoulou <ntina23gr@freemail.gr>)
List 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 by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: select id,count(imdb_id) problem
Next
From: Ntina Papadopoulou
Date:
Subject: Re: select id,count(imdb_id) problem