adventurous1
Programmer
Hi all...
I need help in writing a FUNCTION that will take an IP address and look it up in another table and return its corresponding geography values.(
A function is needed as I have millions of records to lookup and brute force SQL does not perform well.)
source record:
IP Address Date
155.44.33.91 4/1/2011
lookup table:
start_ip end_ip city state zip
155.44.33.1 155.93.22.200 lakeland tx 55495
197.65.39.8 198.33.95.12 plano ca 85167
Can someone help me with an answer? Thanks!
I need help in writing a FUNCTION that will take an IP address and look it up in another table and return its corresponding geography values.(
A function is needed as I have millions of records to lookup and brute force SQL does not perform well.)
source record:
IP Address Date
155.44.33.91 4/1/2011
lookup table:
start_ip end_ip city state zip
155.44.33.1 155.93.22.200 lakeland tx 55495
197.65.39.8 198.33.95.12 plano ca 85167
Can someone help me with an answer? Thanks!