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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:26:07+00:00 2026-06-07T22:26:07+00:00

I have a database that needs to store customer data which I’m trying to

  • 0

I have a database that needs to store customer data which I’m trying to figure out what tables I need. So far I was thinking something like this:

customer table:

  • id
  • company name
  • first name
  • surname
  • notes
  • telephone
  • alt telephone

Address table:

  • line1
  • line2
  • town
  • post code

site table(physical sites where work needs to be done)

  • site name
  • notes

A customer will have 1 contact address and 1 + site addresses. the two addresses may be the same (if the customer uses business address as contact). However sometimes the contact address will be different from the site addresses.

Would I need two address tables? one for the customer addresses and one for the site?
also should telephone be a separate table as I will sometimes have 2 stored for each customer?

  • 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-06-07T22:26:09+00:00Added an answer on June 7, 2026 at 10:26 pm

    Your design looks pretty good, though you probably want a id in address, and site as well. I am not sure if you want telephone in your customer table unless you limit the number of numbers that they can have. Does a site need an address (I onlly ask because I am not sure if it is a physical site vs website)? I bring this up because it can effect the design. If the only entity tied to an address is customer, then it would make sense to have a customer_id in address. However, if address is shared between customers, or used in the site table than I would make join tables for it.

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

Sidebar

Related Questions

I have a sqlite database which is opened in :memory: that needs to be
I have some data in a database that I need represented in an XML
I have a database two tables and a linking table that I need a
I need to store basic data of customer's and cars that they bought and
I'm currently developing an application that needs to store data in it's on database,
I have a Rails app that needs to expose values from a database as
I have a database entry that I need to update. This method obviously doesn't
I have a number of reports that I run against my database that need
I have a large database table that I need to display on a Windows
I have a database table with a field that I need to read from

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.