Re: [HACKERS] group by problem

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: sthomas(at)cise(dot)ufl(dot)edu (Shiby Thomas)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] group by problem
Date: 1998-02-20 19:16:14
Message-ID: 199802201916.OAA06993@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Hi,
>
> I get the foll. error for a group by query:
> This is with the snapshot of Feb 20, and I am running on sparc-solaris 2.6
>
> insert into FTemp1 select item as item1, count(*) as cnt from data group by
> item;
> ERROR: The field being grouped by must appear in the target list
>
> Thanks
> --shiby

Say:

group by item1.

--
Bruce Momjian
maillist(at)candle(dot)pha(dot)pa(dot)us

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 1998-02-20 19:18:03 Re: [HACKERS] Who is everyone?
Previous Message Bruce Momjian 1998-02-20 19:15:09 Re: AW: [HACKERS] triggers, views and rules (not instead)