Re: having trouble w/ having clause...

From: Wolfgang(dot)Fuertbauer(at)ebewe(dot)com
To: jdiehl(at)sandia(dot)gov
Cc: pgsql-sql(at)postgresql(dot)org, pgsql-sql-owner(at)postgresql(dot)org
Subject: Re: having trouble w/ having clause...
Date: 2002-05-13 06:35:19
Message-ID: OF83111100.01FEDB23-ONC1256BB8.0024281D@ebewe.co.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On 08.05.2002 22:58:59 pgsql-sql-owner wrote:
>Hi all,
>
>This is a simple question, but for the life of me, I can't see what is
wrong
>with this query:
>
>select host,slot,port,count(mac) as d from cam group by host,slot,port
having
>d>1;

try:
select host,slot,port,count(mac) as d from cam group by host,slot,port
having count(mac) >1;
W

>
>I'm running 7.2.
>
>Thanx in advance,

Browse pgsql-sql by date

  From Date Subject
Next Message Wolfgang.Fuertbauer 2002-05-13 07:12:59 Re: Migrating from 7.1 to 7.2
Previous Message Rajesh Kumar Mallah. 2002-05-13 04:50:07 Re: Further info : Very high load average but no cpu utilization ?