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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:08:11+00:00 2026-05-12T07:08:11+00:00

I’m designing a database application which stores simple contact information (First/Last Name etc.) and

  • 0

I’m designing a database application which stores simple contact information (First/Last Name etc.) and I also have to store phone numbers. Besides phone numbers I have to store what they are for (mobile, business etc.) and possibly an additional comment for each.

My first approach was to normalize and keep the phone numbers in a separate table, so that I have my ‘Contacts’ and my ‘PhoneNumbers’ table. The PhoneNumbers table would be like this:

Id int PK
ContactId int FK<->Contacts.Id
PhoneNumber nvarchar(22)
Description nvarchar(100)

However, it would make things a lot easier AND save a SQL Join on retrieval if I just stored this information as part of each contact’s record (assuming that I limit the total # of phone numbers that can be stored, to say 4 numbers total).

However, I end up with an “ugly” structure like this:

PhoneNumber1 nvarchar(22)
Description1 nvarchar(100)
PhoneNumber2 nvarchar(22)
Description2 nvarchar(100)

etc. etc.

It looks amateurish to me but here are the advantages I see:

1) In ASP.NET MVC I can simply attach the input textboxes to my LINQ object’s properties and I’m done with wiring up record adds and updates.

2) No SQL Join necessary to retrieve the information.

Unfortunately I am not very knowledgeable on issues such as table width problems (I read that this can cause problems if it grows too big/too many columns and that performance issues come up?) and then also it would mean that when I search for a phone number I’d have to look at 4 fields instead of 1 if I kept it in a separate table.

My application has about 80% search/data retrieval activity so search performance is an important factor.

I appreciate your help in finding the right way to do this. Separate table or keep it all in one? Thank you!

  • 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-12T07:08:12+00:00Added an answer on May 12, 2026 at 7:08 am

    It won’t likely cause problems to have the data denormalized like that, but I wouldn’t suggest it. Even though it may be more complex to query, it’s better to have well formed data that you can manipulate in a multitude of ways. I would suggest a database schema like this:

    Contacts:
      ID (Primary Key)
      Name
      Job Title
    
    Phone Number Categories:
      ID (Primary key)
      Name
    
    Phone Numbers:
      ID (Primary Key)
      Category_ID (Foreign Key -> Phone Number Categories.ID)
      Contact_ID (Foreign Key -> Contacts.ID)
      Phone Number
    

    This allows you a lot of flexibility in the number of phone numbers allowed, and gives you the ability to categorize them.

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

Sidebar

Ask A Question

Stats

  • Questions 380k
  • Answers 380k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer That article from Aaron is very good for understanding, also… May 14, 2026 at 10:00 pm
  • Editorial Team
    Editorial Team added an answer What you want to do is achieved by using Process.ProcessorAffinity.… May 14, 2026 at 10:00 pm
  • Editorial Team
    Editorial Team added an answer What you want to do is change the values via… May 14, 2026 at 10:00 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.