Is there a way to find/match non-primarykey records in two different tables?
problem:
TableA - contains records (John, Dhough, )
TableB - contains same records as TableA (John, Dhough, D)
both tables do not have primary keys
when a transaction is made a record from TableA is replicated into TableB, however it has a filed marked D, matching record from TableB must be then deleted.
Major problem:
as the rows are identical (except D), no primary key, but there could be up to 25 SAME, IDENTIC records in TableB:
1. John, Dhough,
2. John, Dhough,
3. John, Dhough,
So, which one to delete?
Ive been looking at some RID (record identifier), but cant find anywhere if these RIDs are perhaps equal to some byte?
problem:
TableA - contains records (John, Dhough, )
TableB - contains same records as TableA (John, Dhough, D)
both tables do not have primary keys
when a transaction is made a record from TableA is replicated into TableB, however it has a filed marked D, matching record from TableB must be then deleted.
Major problem:
as the rows are identical (except D), no primary key, but there could be up to 25 SAME, IDENTIC records in TableB:
1. John, Dhough,
2. John, Dhough,
3. John, Dhough,
So, which one to delete?
Ive been looking at some RID (record identifier), but cant find anywhere if these RIDs are perhaps equal to some byte?