Compare two Oracle table
Moderators: chulett, rschirm, roy
Compare two Oracle table
Hi All,
what is the easiest way to compare two oracle tables with 25 attributes and up to 100.000 rows and write out the differences ?
Thx
Matthias
what is the easiest way to compare two oracle tables with 25 attributes and up to 100.000 rows and write out the differences ?
Thx
Matthias
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
-
- Premium Member
- Posts: 614
- Joined: Fri Feb 06, 2004 3:59 pm
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
Hi Annapurna,
The CRC32 routine is used to compare records from two tables or two flatfiles. The CRC32 algorithm concatenates each column of the each table and generates a unique 32-bit number for each record on that table. So, this way, you can generate the CRC32 number for the record in the other table also and THEN compare both of them because all you have to do is compare the number generated by CRC32.
Hope it helps. If not, let me know where you are having problems.
Naveen.
The CRC32 routine is used to compare records from two tables or two flatfiles. The CRC32 algorithm concatenates each column of the each table and generates a unique 32-bit number for each record on that table. So, this way, you can generate the CRC32 number for the record in the other table also and THEN compare both of them because all you have to do is compare the number generated by CRC32.
Hope it helps. If not, let me know where you are having problems.
Naveen.
-
- Premium Member
- Posts: 614
- Joined: Fri Feb 06, 2004 3:59 pm
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
Annapurna,
I have not understood the first part of your question. Can you frame it again? But as far as the routine and the category. The CRC32 routine is not under any category.
As far as I remember, the syntax for CRC32 is :
CRC32(column1:column2:column3:........:columnn)
This generates a unique number. And you can play around with that number according to your requirement.
Remember, you are concatenating the columns.
Naveen.
I have not understood the first part of your question. Can you frame it again? But as far as the routine and the category. The CRC32 routine is not under any category.
As far as I remember, the syntax for CRC32 is :
CRC32(column1:column2:column3:........:columnn)
This generates a unique number. And you can play around with that number according to your requirement.
Remember, you are concatenating the columns.
Naveen.
-
- Premium Member
- Posts: 614
- Joined: Fri Feb 06, 2004 3:59 pm
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
Hi,
You cannot find the routine in the manager. You can compare the fields in both the stages by writing the constraint in the transformer.
You can also use stage variables for the each CRC32 generated, one for sequential and one for hash.
Use can say for example;
A= CRC32(field1:field2:field3............)
Let me know if its still not clear. And let me know where you are having trouble understanding.
Naveen.
You cannot find the routine in the manager. You can compare the fields in both the stages by writing the constraint in the transformer.
You can also use stage variables for the each CRC32 generated, one for sequential and one for hash.
Use can say for example;
A= CRC32(field1:field2:field3............)
Let me know if its still not clear. And let me know where you are having trouble understanding.
Naveen.
-
- Participant
- Posts: 232
- Joined: Sat May 07, 2005 2:49 pm
- Location: USA
Hi Anu,kollurianu wrote:
2.i need to compare fields in a sequential stage and fields in a
hash file stage
To compare fields in a sequential stage and a hash file stage, Wouldnt it be easy to use the hash file as the lookup and the records from your input sequential file as the stream input. In fact the primary use of the hash files is for lookup.
Thanks,
Naveen
-
- Premium Member
- Posts: 614
- Joined: Fri Feb 06, 2004 3:59 pm
-
- Premium Member
- Posts: 1255
- Joined: Wed Feb 02, 2005 11:54 am
- Location: United States of America
-
- Premium Member
- Posts: 614
- Joined: Fri Feb 06, 2004 3:59 pm
-
- Premium Member
- Posts: 614
- Joined: Fri Feb 06, 2004 3:59 pm