Skip to content

Commit 6a3d475

Browse files
committed
as -> AS
1 parent 747cfef commit 6a3d475

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/sql-ref-syntax-qry-window.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ SELECT name, dept, DENSE_RANK() OVER (PARTITION BY dept ORDER BY salary ROWS BET
148148
+-----+-----------+------+----------+
149149

150150
SELECT name, dept, age, CUME_DIST() OVER (PARTITION BY dept ORDER BY age
151-
RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) as cume_dist FROM employees;
151+
RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS cume_dist FROM employees;
152152
+-----+-----------+------+------------------+
153153
| name| dept|age | cume_dist|
154154
+-----+-----------+------+------------------+
@@ -182,8 +182,8 @@ SELECT name, dept, salary, MIN(salary) OVER (PARTITION BY dept ORDER BY salary)
182182
+-----+-----------+------+-----+
183183

184184
SELECT name, salary,
185-
LAG(salary) OVER (PARTITION BY dept ORDER BY salary) as lag,
186-
LEAD(salary, 1, 0) OVER (PARTITION BY dept ORDER BY salary) as lead
185+
LAG(salary) OVER (PARTITION BY dept ORDER BY salary) AS lag,
186+
LEAD(salary, 1, 0) OVER (PARTITION BY dept ORDER BY salary) AS lead
187187
FROM employees;
188188
+-----+-----------+------+-----+-----+
189189
| name| dept|salary| lag| lead|

0 commit comments

Comments
 (0)