count(imdb_id) problem - Mailing list pgsql-novice

From William Wallace
Subject count(imdb_id) problem
Date
Msg-id 4439E334.4030903@otenet.gr
Whole thread Raw
List pgsql-novice
Hello community!

When I type a query in postgresql, like

select id,imdb_id,count(imdb_id) from "Movies" where id<10 group by imdb_id;

it says: column "Movies.id" must appear in the GROUP BY clause or be
used in an aggregate function
Where is the error?
What is the right spelling of this query?



pgsql-novice by date:

Previous
From: James Long
Date:
Subject: Re: How to append records into a file which has serial
Next
From: "Relaxin"
Date:
Subject: Re: PostgreSQL a slow DB?