Hibernate-分组统计数据
2016-06-04 13:09
239 查看
/* * 分组聚合 select avg(h.price),max(h.price),min(h.price) from House h */ /* * 各个街道房屋 select avg(h.price),max(h.price),min(h.price) from Street * s left join s.house h group by s */ /* * 隐式内连接 select avg(h.price),max(h.price),min(h.price) from House h * group by h.street. */ /* * 街区 房屋 各个县区 h_ s_q三表 select avg(h.price),max(h.price),min(h.price) * from District d left join d.streets s left join s.house group by * d.name */ /* * select avg(h.price),max(h.price),min(h.price) from House h group * by h.streets.district.name */
相关文章推荐
- 51CTO学院三周年 ——见证我的变化
- top命令查看系统内存使用情况
- js数组的操作
- LA 4670 Dominating Patterns (AC自动机)
- SimpleMappingExceptionResolver的使用
- Theano-卷积神经网络
- c++编码绝对路径与相对路径浅析
- docker 容器热扩容
- Android json详解
- Linux date使用
- 数据库的锁机制
- Django学习笔记--文章显示的处理
- C#委托多播、Lambda表达、多线程、任务
- 数组——矩阵清零
- 调试入门
- 树莓派安装系统和制作镜像
- Google 分析 SDK 之渠道统计
- 66. Plus One [easy] (Python)
- 第三方插件
- Swift专题讲解二十三——高级运算符