[tbl_votes]
- id <!-- unique id of the vote) -->
- item_id <!-- vote belongs to item <id> -->
- vote <!-- number 1-10 -->
Run Code Online (Sandbox Code Playgroud)
当然,我们可以通过获得:
smallest observation(所以)lower quartile(LQ)median(我)upper quartile(UQ)largest observation(lo)..一个一个地使用多个查询,但我想知道是否可以使用单个查询完成.
在Oracle中我可以使用COUNT OVER和RATIO_TO_REPORT,但mySQL不支持.
对于那些不知道盒子图是什么的人:http://en.wikipedia.org/wiki/Box_plot
任何帮助,将不胜感激.