Is it possible to order by a new column inside row_number?
I would like to do something like this:
select text1 + text2 as NEW_TEXT, row_number over (order by NEW_TEXT) from table
but such sorting doesn’t work (I get random results).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to repeat the expression
text1 + text2Or do it in steps (foo could be a CTE here)