What are ways to match street addresses in SQL Server?

前端 未结 8 2243
时光说笑
时光说笑 2021-01-01 03:44

We have a column for street addresses:

123 Maple Rd.
321 1st Ave.
etc...

Is there any way to match these addresses t

8条回答
  •  不知归路
    2021-01-01 04:15

    I think the first step for you is to better define how generous or not you're going to be regarding differing addresses. For example, which of these match and which don't:

    123 Maple Street
    123 Maple St
    123 maple street
    123 mpale street
    123 maple
    123. maple st
    123 N maple street
    123 maple ave
    123 maple blvd
    

    Are there both a Maple Street and a Maple Blvd in the same area? What about Oak Street vs Oak Blvd.

    For example, where I live there many streets/roads/blvds/ave that are all named Owasso. I live on Owasso Street, which connects to North Owasso Blvd, which connects to South Owasso Blvd. However, there is only one Victoria Ave.

    Given that reality, you must either have a database of all road names, and look for the closest road (and deal with the number seperately)

    OR

    Make an decision ahead of time what you'll insist on and what you won't.

提交回复
热议问题