I have two tables Table A and Table B. Both table have million rows and a column - column C where data type is "varchar2(3000)".
Following is the schema:
Create Table TableA
ID number(20),
C Varchar2(3000)
Create Table TableB
ID number(20),
C Varchar2(3000),
C_HARSH Varchar2(100)
I only have read access to Table A. However, I am the owner and have full access to table B. Both tables have million rows
I need to make a comparison on the column C from both table.
Would it be faster if I firstly add a new column to Table B to store the hash value of the column C from table and compare the hash value of column C from Table A than simply compare long strings?
IE Would
B.C_Harsh = ora_hash(A.C,99,5)
Faster than
B.C = A.C
In my scenario?
-------------- Added example as requested --------------------
Following is one of the sample data in Column C
Small Changes