日期:2014-05-16 浏览次数:21198 次
select classname,departmentclass.classid,(select count(articleid) from article where editor in (select username from admin where departmentclassid in (select a.classid from departmentclass as a where a.parentid =departmentclass.classid or a.classid = departmentclass.classid ))) bb from departmentclass where departmentclass.parentid =0 order by bb desc
select classname,departmentclass.classid,(select count(articleid) from article where editor in (select username from admin where departmentclassid in (select a.classid from departmentclass as a where a.parentid =departmentclass.classid or a.classid = departmentclass.classid ))) from departmentclass where departmentclass.parentid =0