In a select statement like the foll
SELECT ID FROM TABLE1 WHERE VALUE < 234
Let us assume that ID is the primary key and VALUE may or may not be a unique index.
Is there any database setting that can be changed, so that the above SELECT statment always returns ID in sorted order. I know that using ORDER BY clause would do the trick, but the situation is that we are not in a position to change the code that contains the SQL statement, but it would be OK to change any database setting to accomplish the same. Any help is highly appreciated
SELECT ID FROM TABLE1 WHERE VALUE < 234
Let us assume that ID is the primary key and VALUE may or may not be a unique index.
Is there any database setting that can be changed, so that the above SELECT statment always returns ID in sorted order. I know that using ORDER BY clause would do the trick, but the situation is that we are not in a position to change the code that contains the SQL statement, but it would be OK to change any database setting to accomplish the same. Any help is highly appreciated