I am not sure which way to go onthis:
I have to generate a report from another programs two tables: (different names) with identical fields (med_name, frequency, etc...)
Each table is used for, obviously, different purposes and, changing any structure on these two tables is out of the question (as the other program is dependent on them).
The report is simple: List medications according to specific patient.
The problem: All Records from table 'a' need to be grouped on top of the report, all records from table 'b' grouped underneath.
I could do a SELECT SQL into two different cursors (BTW, I only do reports from cursors) but don't know how to get a grouping in one report on two cursors.
Or, I could combine the two tables into one cursor, with an added field markning the 'a' or 'b', but can't get that to work either.
Could really use help on this!
Thank you very much in advance
Rainer
I have to generate a report from another programs two tables: (different names) with identical fields (med_name, frequency, etc...)
Each table is used for, obviously, different purposes and, changing any structure on these two tables is out of the question (as the other program is dependent on them).
The report is simple: List medications according to specific patient.
The problem: All Records from table 'a' need to be grouped on top of the report, all records from table 'b' grouped underneath.
I could do a SELECT SQL into two different cursors (BTW, I only do reports from cursors) but don't know how to get a grouping in one report on two cursors.
Or, I could combine the two tables into one cursor, with an added field markning the 'a' or 'b', but can't get that to work either.
Could really use help on this!
Thank you very much in advance
Rainer