Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Dishman (Programmer) (OP)
9 Dec 04 17:07
Does anyone know of a SQL address parsing tool or have code for parsing address data. For Example: 100 West Main St. parsed into 3 separate variables Street Number, Street Name, and Street Type.

I need this for an inhouse project where we need to match incoming patient data from many different sources to our data by using first name, last name, address, city, state, and zip. Because the data comes in from many different sources it is never exactly the same and therefore I must score each element to get an overall confidence score to determine the correct inhouse record which matches.

Any help with this would be greatly appreciated.

Thanks,
Dish
donutman (Programmer)
9 Dec 04 17:27
   If I had a nickle for every time... Thread183-948580 is the most recent.  It's a combination of SQL and manual updates.  Work right to left, one field at a time.  Update the data and check the results by sorting the data on the updated field.  Find errors and correct manually.
-Karl

Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil!
Life's uncertain...eat dessert first...www.deerfieldbakery.com

Dishman (Programmer) (OP)
9 Dec 04 17:52
Well Donutman I would happily give you a dollar for a good parsing script that takes into account that the address does not come in any specified format. It could be 100 W. Main St, P.O. Box 100, 100 West Main Street Apt. 10, etc. That is my true battle which I guess was not properly specified in my original post. I must parse these addresses and attempt to match as many elements as possible to determine the correct match.

I do thank you for your initial reply and again any help or a point in the right direction would sure save me a lot of headaches.

Dish
donutman (Programmer)
9 Dec 04 19:36
   Only you can come up with the appropriate algorithm based upon the data.  Because of the many ways that the data can be stored, I seriously doubt that there is a swiss army address parser out there.  
   It is a PITA job that requires time and ingenuity.  But if it were my job, I would parse (as I said) from the right to the left using T-SQL on a mass basis.  First I would try to get the zip codes, store that field and examine the results.  Fix them and move on to the next item, usually State.
   If the addresses are as randomly formated as you just posted, I'd consider sending the data to India.
   Sorry, but that's the best I can offer.
-Karl

Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil!
Life's uncertain...eat dessert first...www.deerfieldbakery.com

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close