以下sql语句在sqlserver可以运行,在access却不行。
这个在access不能运行
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