Skip to content

Commit

Permalink
Update r_Examples_order_by_WF.md
Browse files Browse the repository at this point in the history
Fixed minor typo
  • Loading branch information
marcfowler authored May 30, 2022
1 parent d7ed651 commit bb86b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc_source/r_Examples_order_by_WF.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

If an ORDER BY clause for a window function doesn't produce a unique and total ordering of the data, the order of the rows is nondeterministic\. If the ORDER BY expression produces duplicate values \(a partial ordering\), the return order of those rows can vary in multiple runs\. In this case, window functions can also return unexpected or inconsistent results\.

For example, the following query returns different results over multiple runs\. These different results occur because `order by dateid` doens't produce a unique ordering of the data for the SUM window function\.
For example, the following query returns different results over multiple runs\. These different results occur because `order by dateid` doesn't produce a unique ordering of the data for the SUM window function\.

```
select dateid, pricepaid,
Expand Down Expand Up @@ -44,4 +44,4 @@ dateid | pricepaid | sumpaid
1827 | 337.00 | 571.00
1827 | 347.00 | 918.00
...
```
```

0 comments on commit bb86b40

Please sign in to comment.