Hi @Rabia Kurnaz
As experts answered, just remove the ORDER BY clause in views, inline functions, derived tables, subqueries, and common table expressions.
Or, as the error message said, specify TOP like this: SELECT TOP (100) PERCENT ... FROM ... ORDER BY column
or OFFSET like this: ORDER BY column DESC OFFSET 0 ROWS
. However, both seems meaningless to me.
Best regards,
Li Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.