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 1005751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:20:51+00:00 2026-05-16T08:20:51+00:00

So I am a first time user here, and still relatively new to SQL.

  • 0

So I am a first time user here, and still relatively new to SQL. I am attempting to take 2 tables, and join them in a sense.

In Table1 I have the data:

House_Key ---Other Fields---   Customer_ID

House_Key is not unique, and as such I can have multiple Customer_IDs per household. House_Key is a numerical code, and Customer_ID is either Home, Business, or Bulk.

In Table2 I have the House_Key field, but not the Customer_ID field.

My goal is to have a new table that holds the fields of Table2 with a field called Customer_ID, but instead of having a new row for each type of Customer_ID like in Table 1, I want to have each House_Key only have one row, and the Customer_ID say something like “Home Business Bulk” if it is all three or any combination of them, but would prefer that it always have Home before Business before Bulk in the field.

Is there any way to do this? Thank you very much ahead of time.

Also, not sure if it matters, but in case it does I’m using SQL Server 2005.

  • 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-16T08:20:51+00:00Added an answer on May 16, 2026 at 8:20 am

    Wow, I’m glad that you came here for an answer, but seems that you really need some reading about relational databases.

    Instead of writing looong answer here’re the links:

    http://en.wikipedia.org/wiki/Database_normalization

    http://en.wikipedia.org/wiki/Join_(SQL)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's the scenario: if this is a user's first time logging into my web
First time user here. I am usually capable of finding answers for questions but
long time reader first time user. I'm putting together my first RoR application and
First time cake user and I'm having real apache problems. For some reason the
First time stackoverflow user but occasional lurker, hope you guys can help me out.
I'm a first time programmer, first time StackOverflow user, studying from Allen Downey's free
I have an app, in that app if its the first time the user
In case user refuse to allow location update when on first time launch. how
First of all it's my first time in Mongo... Concept: A user is able
I'm writing some user controls for the first time and I'm wondering if there's

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.