SQL练习--某书第七章(窗口函数

重要的事情说三遍 窗口函数只能自select和select顺序之后的命令中使用(orderby可以)但是where不可以 SELECT custid,orderid,qty, qty - LAG(qty) OVER(PARTITION BY custid ORDER BY orderdate,orderid) AS diffprec, qty - LEAD(qt
相关文章
相关标签/搜索