baanprog
2nd December 2004, 07:31
Hi,
I have two tables which have the same index. They both have to be printed in the same detail in the report. I want to achieve this using only select statements.
Group returns cross product of the two tables when I select both the tables.
I cannot select one table and then the other since both have more than one record.
if it using counting records and arrays, I know the solution.
Can anyone suggest how this can be achieved just using select statements, I will appreciate it.
table tsmmm905 index 1 = tsmmm905.recd, tsmmm905.redt, tsmmm905.shed, tsmmm905.shift, tsmmm905.sno
table timmm921 index 1 = tsmmm921.recd, tsmmm921.redt, tsmmm921.shed, tsmmm921.shift, tsmmm921.sno
Thanks
I have two tables which have the same index. They both have to be printed in the same detail in the report. I want to achieve this using only select statements.
Group returns cross product of the two tables when I select both the tables.
I cannot select one table and then the other since both have more than one record.
if it using counting records and arrays, I know the solution.
Can anyone suggest how this can be achieved just using select statements, I will appreciate it.
table tsmmm905 index 1 = tsmmm905.recd, tsmmm905.redt, tsmmm905.shed, tsmmm905.shift, tsmmm905.sno
table timmm921 index 1 = tsmmm921.recd, tsmmm921.redt, tsmmm921.shed, tsmmm921.shift, tsmmm921.sno
Thanks