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

  • Home
  • SEARCH
  • 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 7519007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:50:00+00:00 2026-05-30T01:50:00+00:00

I am designing a database and initially I setup addresses separate from orders so

  • 0

I am designing a database and initially I setup addresses separate from orders so the orders table just has a billing id and address id reference and the actual address are stored in the address table.

However the more I think about this i am not sure there is any real advantage to putting address into their own table.

The main reason is that a order is self contained meaning that the address is only valid for that order.

Having address linked instead of on the order record leads to some complications when updating addresses. Say if we have two orders from one customer linked to the same address and he wants the address changed on one order but not the other a new address. The application now needs to create a new address in the address table and change the linked address on the order (you can’t just change the address because it would change it for both linked orders).

You also have to have code in your application that links new orders to addresses already in the database (and that only works for orders where the addresses are identical or nearly identical).

The only advantage I see right now to having order addresses in their own table is so the billing address and shipping address are not duplicated for every order.

On the surface it seems like preventing billing and shipping address data duplication isn’t worth the extra code needed to make storing addresses in their own table work.

Any recommendations on how to handle this? Is there some big advantage to handling the addresses in separate tables that I am missing?

  • 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-30T01:50:01+00:00Added an answer on May 30, 2026 at 1:50 am

    It sounds like what you want (ideally) is for the order to be linked to the address as it was at the time of the order.

    There are two main ways to implement this – either the order includes all of the address information within its own structure, or you implement the address table as a temporal table, and ensure the order has appropriate datetime information to locate the correct address rows when queried.

    Which one you implement depends on how you wish to handle updates – both models may have issues, depending on whether in-flight orders should/should not be updated.

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

Sidebar

Related Questions

I am designing a database for a project. I have a table that has
I'm designing a database table which will hold filenames of uploaded files. What is
I am designing a database with a single table for a special scenario I
I'm designing a database containing messages and messengers. create table Message( MessageID int, MessengerID
I'm designing a database for an employee scheduling system. Each shift has M different
We're designing an Android app that has a lot of data (customers, products, orders...),
Just started designing a database which I have not done before. And am wondering
I am designing database tables for a master-detail scenario. The specific requirement is that
When designing a database to use MVCC (Multi-Version Concurrency Control), you create tables with
I'm designing my database and LINQ To SQL ASP.NET web application. Imagine I have

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.