Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1033823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:17:31+00:00 2026-05-16T14:17:31+00:00

I have this setup: an output table where my results will end up consisting

  • 0

I have this setup: an output table where my results will end up consisting of

[FirstName]
[LastName]
[Address1]
[Address2]
[Address3]
[ZipCode]
[City]
[Country]

The original data consists mostly of line feed split address lines, some are split by commas, and there is one name field.

My original data tables look simply like this:

[NAME ]
[ADDRESS]

How would I translate these into one another using T-SQL?

Thanks for your time.

Matt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:17:31+00:00Added an answer on May 16, 2026 at 2:17 pm

    Your real question here is, how do I parse the contents of [ADDRESS] into separate attributes? I would forget about TSQL for now and investigate the quality of the source data to see how easy (or not) it is to parse in theory. Then find a practical solution. Some random comments:

    • Address data is notoriously ‘dirty’ and parsing it is usually difficult, especially international data.
    • TSQL is not a good language for text manipulation in general; if you eventually decide to parse the data yourself, then you should almost certainly do it in another language outside the database (C#, Perl, Python, whatever).
    • Even if you already have very clean data, there is no SPLIT() function in TSQL. It’s easy to write one but String.Split() or an equivalent in your preferred language will probably be faster and easier. So even if you do have the luxury of clean data, consider an external program or possibly a .NET stored procedure.
    • If you have a large amount of data, look into companies who can parse and validate address data for you; typically, they offer bulk solutions and on-demand web services. You might think it’s expensive, but they can do things you probably can’t (e.g. fuzzy matching addresses against postal databases from different countries) and compared to the cost of your time now plus future maintenance you might find it’s actually cheaper.
    • If you absolutely have to parse the data yourself, make sure you develop an extensive set of unit tests.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.