java,
分享于 点击 9423 次 点评:30
java,
现在我有三张表,第一张 工作日程表Inspection ,第二张 用户表User , 第三张 部门表 Department,Inspection的executor列和User的主键id 是主外键,然后User的department列和Department的主键id 是主外键,我想在想用HQL语句 查询分部门 分别统计共组量 。。。。。。select ins.executor.department.name, ins.status, count(*)
from Inspection as,User us,Department depa ins
where ins.executor.id=us.id and us.department.id=depa.id
group by ins.executor.department.name,ins.status ",
请高人帮我分析下呗,谢谢了 很急 我的QQ 792098889
相关文章
- 暂无相关文章
用户点评