I have a 15 integer column with 5,000,000 rows in a table. Given a input record containing 15 integers I need to compare the input record with the 5,000,000 record table and obtain all matching rows.
Note1: All integers within a row are unique
Note2: the order of columns matching and the input record is not important.
for example: 1, 10, 15, 23, 9, 22, 99, 11, 19, 32, 45, 21, 76, 12, 33 and 33, 10, 15, 99, 11, 19, 32, 45, 21, 23, 9, 22, 76, 12, 1 should yield a match result
Is it possible to implement a hashing function / bitwise operation to generate a unique index for each row. The function can return the same index for 2 rows if the values in the records are same