Update postgresql-row_number.md#3376
Merged
danieltprice merged 1 commit intoneondatabase:mainfrom May 9, 2025
Merged
Conversation
ROW_NUMBER is not defined as an alias and will cause an error. Defined an alias for the column for future reference outside of the subquery.
|
@lightify97 is attempting to deploy a commit to the neondatabase Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR resolves an error by defining an alias for the ROW_NUMBER function and updating its subsequent usage in the WHERE clause.
- Added alias "rn" for the ROW_NUMBER function.
- Updated the WHERE clause to use the "rn" alias instead of the undefined ROW_NUMBER.
Comments suppressed due to low confidence (2)
content/postgresql/postgresql-window-function/postgresql-row_number.md:183
- The alias 'rn' has been correctly added for the ROW_NUMBER() function. Please confirm that 'rn' is consistently used in all subsequent references to avoid undefined column errors.
) as rn
content/postgresql/postgresql-window-function/postgresql-row_number.md:188
- The WHERE clause now correctly references the 'rn' alias instead of ROW_NUMBER, resolving the undefined alias error.
rn BETWEEN 6 AND 10;
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR corrects an error in the PostgreSQL ROW_NUMBER example by defining an alias for the ROW_NUMBER column.
- Added the alias "rn" for the ROW_NUMBER column in the subquery.
- Updated the WHERE clause to reference the new alias.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
danieltprice
approved these changes
May 9, 2025
Collaborator
|
Thank you @lightify97 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ROW_NUMBER is not defined as an alias and will cause an error. Defined an alias for the column for future reference outside of the subquery.