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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:52:24+00:00 2026-05-31T23:52:24+00:00

How do I normalize the following table: Table Order Detail: ——————- Order# Item# Desc

  • 0

How do I normalize the following table:

Table Order Detail:
-------------------
Order#
Item#
Desc
ShipDate1
Qty1
ShipDate2
Qty2
ShipDate3
Qty3
ShipDate4
Qty4
ShipDate5
Qty5
....
ShipDate20
Qty20
  • 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-31T23:52:25+00:00Added an answer on May 31, 2026 at 11:52 pm

    You’d want to have three tables: Item, Order, and OrderDetail:

    OrderDetail: OrderId, ItemId, Quantity, ShipmentDate
    Order: Id, ...
    Item: Id, Desc, ...
    

    A better way would be to separate the order detail from shipping detail:

    OrderDetail: Id, OrderId, ItemId, Quantity
    Order: Id, ...
    Item: Id, Desc, ...
    OrderShipment: Id, OrderDetailId, ShipmentDate, Quantity
    

    OrderDetail.Id is a surrogate key for the table. It’s used again in the OrderShipment.OrderDetailId field. I’ve included Quantity on the OrderShipment table so that you can support partial order fulfillment.

    The item description can be found by joining the OrderDetail and Item tables. You can get order header information by joining to the Order table.

    In this design, you might have twenty records instead of that many columns:

    OrderId ItemId Quantity
    10      123    5
    10      489    20
    10      238    39
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I normalize a vector V in MATLAB as following: normalized_V = V/norm(V); however, is
Consider the following code: template <int dim> struct vec { vec normalize(); }; template
I have problems with following code: http://lisper.ru/apps/format/96 The problem is in normalize function, which
I'm trying to normalize a mysql database.... I currently have a table that contains
I have a table with the following structure: WorkerPersons ------------------------------- ID (PK) PersonID (Indicates
I have a table that satisfies the following relations: R(A, B, C, D, E,
Whilst on my local machine the following code behaves perfectly. @Html.Raw(SquishIt.Framework.Bundle.Css() .Add(~/css/normalize.css) .Add(~/css/nonsemantic.css) .Add(~/css/custom/basic/site.css)
I have used the following code in my XSL: <xsl:variable name=link select=normalize-space(concat('#',$chapter2))/> <a href={$link}>Next
I wanted to normalize my table to all 3NF I believe that all of
The Scenario: I have the following (simplified) database table scenario: ID ProductName ProductCategory Colour

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.