From: Limin Liu <limin@pumpkinnet.com>
To: pgsql-general@postgresql.org
Subject: Is this a bug?
Date: Tue, 27 Feb 2001 15:40:30 -0800
Message-ID: <3A9C3AEE.BBF70529@pumpkinnet.com> (raw)
Hi,
Can anyone please tell me whether this is a bug or not?
I used the following SQL to create my table and view with some data.
=======================
create table tbl (no int, cnt int);
create view tbl_view as
select no, count(cnt) as count
from tbl
group by no
having count(cnt) > 2;
insert into tbl values(1, 1);
insert into tbl values(1, 2);
insert into tbl values(1, 3);
insert into tbl values(1, 4);
insert into tbl values(2, 1);
insert into tbl values(2, 2);
insert into tbl values(2, 3);
=======================
Here is soem SQL I issued; first one looks fine to me, but the second
one is weird.
=======================
db=> select * from tbl_view;
no | count
----+-------
1 | 4
2 | 3
(2 rows)
db=> select * from tbl_view where count > 5;
no | count
----+-------
1 | 4
2 | 3
(2 rows)
db2=>
=======================
Thanx
LM.Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: limin@pumpkinnet.com
Subject: Re: Is this a bug?
In-Reply-To: <3A9C3AEE.BBF70529@pumpkinnet.com>
References: <3A9C3AEE.BBF70529@pumpkinnet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox