select id,count(imdb_id) problem

From: Ntina Papadopoulou <ntina23gr(at)freemail(dot)gr>
To: pgsql-novice(at)postgresql(dot)org
Subject: select id,count(imdb_id) problem
Date: 2006-04-10 05:28:12
Message-ID: 4439ECEC.1060601@freemail.gr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

____________________________________________________________________
http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου.
http://www.freemail.gr - free email service for the Greek-speaking.

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message A. Kretschmer 2006-04-10 05:38:00 Re: select id,count(imdb_id) problem
Previous Message William Wallace 2006-04-10 04:46:44 count(imdb_id) problem