平成30/ 2018-12-10 07:56
mysql having 条件
select count(*), cd from smpl group by cd having count(*) > 1;

(Thanks.)
http://webcache.googleusercontent.com/search?q=cache:V9rcz0mXmlkJ:phpjavascriptroom.com/%3Ft%3Dmysql%26p%3Davg+mysql+count+%E6%9D%A1%E4%BB%B6&cd=6&hl=ja&ct=clnk&gl=jp