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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:39:11+00:00 2026-06-09T07:39:11+00:00

I want to create a small invoicing application. My first step is creating a

  • 0

I want to create a small invoicing application. My first step is creating a database with two tables where each client can have multiple addresses and phone numbers.

I think its safe to assume here that I am dealing with a one to many relationship. But how should I design the tables and fields so they can store multiple addresses and phone numbers per user? By multiple I also mean indeterminate since so I can’t just have x no of columns in my table. Off Hand, here is what I was thinking:

Clients
- Id
- Notes

CONTACTS
- id
- client_id
- address
- phone number

Now I am trying to avoid a third join table like this:

Clients_Contacts
- id
- client_id
- contact id

because I still want a one to many and not many to many relationship between contacts and clients. Is there something wrong with the way I am thinking about this? Can someone please help me design this database and show me what a sample query querying multiple addresses would look like.

  • 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-09T07:39:12+00:00Added an answer on June 9, 2026 at 7:39 am

    Why would you nead a join table?

    I would have

    Client
    - ID (PK, FK of Contact)
    - Notes
    
    Contact
    - ID (PK)
    - client_id
    - address
    - phone_number
    

    Then just set the ID of the client to be the value of client_id within the contact information.

    This way, multiple Contact records can have the same client_id.

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

Sidebar

Related Questions

I want to create a small database for my inventory but I have some
I want create an application with animate button? how can i do? after click
I want to create a Data Access Layer for a small application. The stored
I want to create a small application that will be able to recognize sound.
I want to create a small java application in order to communicate with an
If I want to create online phone for small office with web client (through
I want to create a small application instead of downloading a source code and
I have 4 small JPEG images (40px x 30px) and I want create an
I want to create a small windows application will go automatically every time period
I want to create a small sample app that can read my employee badge

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.