No the tables do not have indices and Yes the tables have identical structures.
Of course 1500 records is not large in the realm of databases, but in fact, my problem does not involve simply tables A & B; it involves A, B, C, D ... AA, AB, AC, etc. So to iterate through all the records one by one will be intensive, even on only 1500 records.
For those needing more info -
I am an auditor. I am auditing rights granted to users on a complex PeopleSoft system. In our version of PeopleSoft rights are granted by assigning Operator Classes to users. Some users have as many as 50 Operator Classes assigned to them. Each class contains assignments to menus, screens, processes, etc.
I am trying to iterate through the assigned Operator Classes to see if they are duplicated. It is easy to determine if a particular right is duplicated. It is not so easy to determine if all the rights granted in A are also granted by B, so there is no need to assign both A and B to the user, unless A or B also contain rights that are not contained in the other. Then you have to do the same with A & C, A & D ..., then B & C, B & D, etc.
As you all know, there are usually two ways to code a module - the elegant way or the brute force way. I am looking for the elegant way to do this, but am about to resign myself to a brute force method.
Thanks for the comments