# SQL Antipatterns, Volume 1: function error (page 186)

**URL:** <https://forum.devtalk.com/t/sql-antipatterns-volume-1-function-error-page-186/142664>\
**Category:** PragProg Customers\
**Tags:** book-sql-antipatterns-volume-1, errata\
**Created:** [6 February 2024 07:19 UTC](https://forum.devtalk.com/t/sql-antipatterns-volume-1-function-error-page-186/142664 "2024-02-06T07:19:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blabla\_bingo](https://forum.devtalk.com/letter_avatar_proxy/v4/letter/b/aca169/32.png) [@blabla\_bingo](https://forum.devtalk.com/u/blabla_bingo)\
**Post date:** [6 February 2024 07:19 UTC](https://forum.devtalk.com/t/sql-antipatterns-volume-1-function-error-page-186/142664/1 "2024-02-06T07:19:39Z")

</div>

@billkarwin

On page 186,both the rand-limit-offset.py and rand-row-number.py code uses round function, which will possibly get the `total_row_count+1` as the displayed row\_number result.
