This is the situation:
I have a fill-in fiA, three tables, X, Y and Z, all 1000 records and a browse with columns, clA, clB, clC, clD, clE and clF.
Now I have to search in table X all the records with field Xa = fiA:screen-value.
After this search I have the values of columns clA, clB, clC and (clD or ClE, exclusive or) of my browse. When I have a value in column clD I have to read a matching record in table Y and can fill clF, when I have a value in column clE I have to read the matching record in table Z to fill column clF. What’s the most efficient way to do this?
Now I do first a ‘for each’ comparing table X and table Y on clD, put the results in a temp-table, do a ‘for each’ on table X comparing table Z on clE, append the results to the temp-table, order the temp-table on column clA DESC and put everything into a browse.
Is there a more efficient way to do this?
Thanks for your suggestions.
I have a fill-in fiA, three tables, X, Y and Z, all 1000 records and a browse with columns, clA, clB, clC, clD, clE and clF.
Now I have to search in table X all the records with field Xa = fiA:screen-value.
After this search I have the values of columns clA, clB, clC and (clD or ClE, exclusive or) of my browse. When I have a value in column clD I have to read a matching record in table Y and can fill clF, when I have a value in column clE I have to read the matching record in table Z to fill column clF. What’s the most efficient way to do this?
Now I do first a ‘for each’ comparing table X and table Y on clD, put the results in a temp-table, do a ‘for each’ on table X comparing table Z on clE, append the results to the temp-table, order the temp-table on column clA DESC and put everything into a browse.
Is there a more efficient way to do this?
Thanks for your suggestions.