I have a DB2 table that is constantly added to (via a GUI-based input application) on a regular, multi-user basis.
The table holds just one field per record but inputting new records results in the order being randomly spread out. While this does not matter in RDBM terms, it is untidy for the input process because input is done - a lot of the time - via a drop-down list.
What I need to do is to re-order this table (CHARTNEW) so that it is re-jigged to alphabetical order. As I don't know how to do this in SQL-speak I am exporting the table to an Excel file, sorting this into alphabetical order and then replacing CHARTNEW with the sorted version (via import back to DB2)
is there a way this can be done via an SQL thread?
Any help greatly appreciated thanks
The table holds just one field per record but inputting new records results in the order being randomly spread out. While this does not matter in RDBM terms, it is untidy for the input process because input is done - a lot of the time - via a drop-down list.
What I need to do is to re-order this table (CHARTNEW) so that it is re-jigged to alphabetical order. As I don't know how to do this in SQL-speak I am exporting the table to an Excel file, sorting this into alphabetical order and then replacing CHARTNEW with the sorted version (via import back to DB2)
is there a way this can be done via an SQL thread?
Any help greatly appreciated thanks