How to sort Detail records on Forms? (and other Q's)
Posted in 1995
uunet!access5.digex.net!briang (Brian G.) writes: >1) How does informix return rows on unsorted queries? > On other databases I've worked on, you specify the primary key > for the table, and rows are returned in order by the primary > key field(s) when no ORDER BY is used. Leading to: I saw some crazy code once and now I think I know why it was there. In sperform Informix sorts by row_id, I think. I know you can't order it.:( The code I saw did something like the following after the option was chosen from a shell script menu. - Run a sacego report that selects the fields from the required tables and order it appropriately. The output looks like an unload file. - Create a new table 'tab_new' - Load the report output into the tab_new table. - Run your form based on tab_new. A lot of C code was involved with this form and I was told that a C routines would update/insert the correct table. - Delete table when done. The developer who did this was a master at 'giving the customer what they want" regardless of the cost to system performance (or maintainence, or anything..) -- || ======= **** **T* ======= ||John Regep || **** **** ||Kmart Information Systems || **** *R** ||Kmart Corporation || =========== ********* =========== ||3100 West Big Beaver C-1 || ***A* **** ||Troy, MI 48084 || **** **** ||(810) 643-5078 ||=============== *M** **** ===============||uunet!kmart!jregep