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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:27:45+00:00 2026-06-14T02:27:45+00:00

I need to put Shipping address , Shipping postcode , Billing Address and Billing

  • 0

I need to put Shipping address, Shipping postcode, Billing Address and Billing Postcode into one Customer table.

Does that violate the 3NF?

  • 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-14T02:27:46+00:00Added an answer on June 14, 2026 at 2:27 am

    Does that violate the 3NF?

    Very strictly speaking: Yes.

    Practically speaking: No.

    If you don’t plan:

    • to have dedicated “Address” entities in your database (i.e.: when the address is nothing more than free text attached to a customer record)
    • to have a variable amount of addresses per customer (but only the two)
    • to have to write a LEFT JOIN for every address you want to select…

    …then stick with your design.

    Normalizing the address into a separate table is about as sensible as normalizing first and last names into their separate tables just because they tend to repeat. Don’t do it.


    Consider “practical”

    SELECT
      CustomerId
      CustomerName,
      COALESCE(BillingAddress, ShippingAddress) AS BillingAddress,
      COALESCE(BillingPostcode, ShippingPostcode) AS BillingPostcode
    FROM
      Customer
    

    vs. “fully normalized”

    SELECT
      c.CustomerId
      c.CustomerName,
      COALESCE(bill.Address, ship.Address) AS BillingAddress,
      COALESCE(bill.Postcode, ship.Postcode) AS BillingPostcode
    FROM
      Customer AS c
      -- join customer-to-address-resolution for billing
      LEFT JOIN CustomerAddress AS custAddrB ON custAddrB.CustomerId = c.CustomerId
                                                AND custAddrB.AddressType = "Billing"
      LEFT JOIN Address         AS      bill ON bill.AddressId = custAddrB.AddressId
      -- join customer-to-address-resolution for shipping
      LEFT JOIN CustomerAddress AS custAddrS ON custAddrS.CustomerId = c.CustomerId
                                                AND custAddrS.AddressType = "Shipping"
      LEFT JOIN Address         AS      ship ON ship.AddressId = custAddrS.AddressId
    

    Plus, the latter system gives you the headache theoretical ability of having multiple shipping addresses per customer.

    The greatest benefit of the latter system is: If they ever change the name of street, all you would need to do is update a single record. In other words: There are no benefits.

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

Sidebar

Related Questions

I need to put one of my test cases into a pending state. I
I need to put whois data in a table like registrant, created date, expire
I need to put several folders into artifact archive. Now I am doing it
I need to put some links in one TextView . For better user experience,
I need to put in my android applicazion a tool that uses the free
I just need put one div (or more) inside or over map, something like
I have a table with some fixed columns id,title,created.., but there I need put
I need to put an LDAP contextSource into my Java EE container's JNDI tree
I need to put greek letters into a URL, for example: www.example.com?id=σκ I have
I need to put the xcodeprojfile in the same dir as the Makefile for

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.