aaapittsburgh
New member
- Joined
- Jan 8, 2007
- Messages
- 3
Hi,
The following is a problem I need help with and I am willing to pay for help if necessary. Any help with it would be greatly appreciated.
Two tables in a database:
Table1 contains a list of phone numbers
Table2 contains a list of phone numbers as well
I would like to create a Table3, in which Table3 contains all numbers
from Table1 that is not in Table2. I am looking for the shortest
runtime possible, keeping in mind that you can use whatever method(s)
you deem necessary.
Table1 contains 30 Million rows,
Table2 contains 2000 rows.
given a regular SQL expression, it will yield Big O(m*n)
Where m = rowcount of Table1
and n = rowcount of Table2
Generate for me, a method in which, runtime will yield Big O (m log2
n).
I don't need code, I want to hear your logic. Table1 is customers, Table2 is a
list of prepaid phone numbers. Table3 is list of people to bill.
The following is a problem I need help with and I am willing to pay for help if necessary. Any help with it would be greatly appreciated.
Two tables in a database:
Table1 contains a list of phone numbers
Table2 contains a list of phone numbers as well
I would like to create a Table3, in which Table3 contains all numbers
from Table1 that is not in Table2. I am looking for the shortest
runtime possible, keeping in mind that you can use whatever method(s)
you deem necessary.
Table1 contains 30 Million rows,
Table2 contains 2000 rows.
given a regular SQL expression, it will yield Big O(m*n)
Where m = rowcount of Table1
and n = rowcount of Table2
Generate for me, a method in which, runtime will yield Big O (m log2
n).
I don't need code, I want to hear your logic. Table1 is customers, Table2 is a
list of prepaid phone numbers. Table3 is list of people to bill.