Re: select id,count(imdb_id) problem

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: select id,count(imdb_id) problem
Date: 2006-04-10 06:00:07
Message-ID: 20060410060007.GB9105@webserv.wug-glas.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

am 10.04.2006, um 8:52:11 +0300 mailte Ntina Papadopoulou folgendes:
> O/H A. Kretschmer ????????????:
> >am 10.04.2006, um 8:28:12 +0300 mailte Ntina Papadopoulou folgendes:
> >
> >>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;

There is something wrong. You say 'where id<10' but your desired result:

>
> The desired result is
> something like
> id | imdb_id | count
> ----+---------+-------
> 1 | 315733 | 9
> 10 | 335753 | 1
> 11 | 320000 | 15

contains id's larger then 10.

Sorry, i can't understand your question.
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47215, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Ntina Papadopoulou 2006-04-10 06:06:50 Re: select id,count(imdb_id) problem
Previous Message Ntina Papadopoulou 2006-04-10 05:52:11 Re: select id,count(imdb_id) problem