这两篇文章讲的还不错。
源路径: http://blog.csdn.net/wwbmyos/article/details/7356413
源路径: http://www.2cto.com/database/201310/249722.html
自己试了一下,发现row_number()、rank()、dense_rank()排序函数不能和range/rows between unbounded preceding and unbounded following等一起使用,不知道是不是就是这样。有谁知道原因若能告诉一下,感激不尽。