From: Liu Danyu
Date: Thu, 18 Jan 2001 18:08:37 +0800
I would do the query as
select maker, pc.id
from table1
where pc.id > 2
order by maker;
----------------------------------------------------------------------------
----
dear all:
I need some help from you.
The dataset is as following
maker pc.id
a 1
a 2
a 3
b 4
b 5
I need to retrieve the maker which include at least 2 pc.id.
I try to write in this form, but it is error!
select maker from table1
where count(pc.id) > 2
group by maker.
thank you
Danyu
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php