You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/t-sql/queries/select-window-transact-sql.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ ORDER BY order_by_expression
71
71
72
72
#### window_name
73
73
74
-
Name of the name of the defined window specification. This name will be used by the window functions in the OVER clause to refer the window specification. Window names must follow the rules for identifiers.
74
+
Name of the defined window specification. This name will be used by the window functions in the OVER clause to refer the window specification. Window names must follow the rules for identifiers.
75
75
76
76
#### reference_window_name
77
77
@@ -104,7 +104,7 @@ The restrictions for usage of window specifications in the OVER clause with the
104
104
105
105
## Examples
106
106
107
-
### Use the window defined in WINDOW clause
107
+
### A. Specifying a window defined in the window clause
108
108
109
109
The following example query shows uses a named window in the OVER clause.
110
110
@@ -167,7 +167,7 @@ Here is the result set.
167
167
| 7 | Campbell | 1573012.9383 | 98055 |
168
168
| 8 | Tsoflias | 1421810.9242 | 98055 |
169
169
170
-
### Simple example reuses windows in OVER clause
170
+
### B. Specifying a single window in multiple over clauses
171
171
172
172
The following example shows defining a window specification and using it multiple times in an OVER clause.
173
173
@@ -231,7 +231,7 @@ Here is the result set.
231
231
| 43664 | 773 | 1 | 14 | 1 | 8 | 1 | 4 |
232
232
| 43664 | 778 | 1 | 14 | 1 | 8 | 1 | 4 |
233
233
234
-
### Defining common specification in WINDOW clause
234
+
### C. Defining common specification in window clause
235
235
236
236
This example shows defining a common specification in a window and using it to define additional specifications in the OVER clause.
237
237
@@ -283,7 +283,7 @@ Here is the result set.
283
283
| 43664 | 714 | 1 | 11 | 1 | 6 |
284
284
| 43664 | 716 | 1 | 12 | 1 | 6 |
285
285
286
-
### Forward and backward window references
286
+
### D. Forward and backward window references
287
287
288
288
This example shows using named windows as forward and backward references when defining a new window in the WINDOW clause.
0 commit comments