I would like to (efficiently) sort the database view - I know that the conceptual order in the db view is not valid, but I have the following scenario:
- a third-party legacy application that reads data from database tables using select (*) from a tab statement
- outdated application is very sensitive to record order
- an application that I wrote so that users can more easily manage data in tables, but inserting and deleting from a table naturally upset records.
Changing the instructions in an outdated application to select (*) from the name field of the name table will fix my problem, but this is not an option.
So - I set up a staging table into which data can be exported in the correct order, but this is a resource-intensive option, meaning that the data is not "live" in an outdated application and additional work for users.
I would like to access an ordered version of a table with these restrictions. Any ideas how?
Update - I work with Sybase 12.5, but I would like to avoid a tightly coupled solution with a specific RDBMS - it may change.
I cannot add the "order by" clause to the view due to the SQL standards mentioned in this Wikipedia entry
source
share