表结构 如下table:class   
id classid classname 
1   2001   计算机2001
2   2002   计算机2002
3   2003   计算机2003
4   2004   计算机2004
5   2005   计算机2005table:member
id   classid   userid
1    2001      001
2    2001      002
3    2002      003 
4    2002      004
5    2002      005
6    2003      006
7    2003      007
8    2003      008求结果
classid   count   classname 
2001      2       计算机2001
2002      3       计算机2002
2003      3       计算机2003
2004      0       计算机2004
2005      0       计算机2005hql语句。谢谢
我只能写出member中有classid的语句