select id,count(imdb_id) problem

Поиск
Список
Период
Сортировка
От Ntina Papadopoulou
Тема select id,count(imdb_id) problem
Дата
Msg-id 4439ECEC.1060601@freemail.gr
обсуждение исходный текст
Ответы Re: select id,count(imdb_id) problem  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список 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.

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

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