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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:05:31+00:00 2026-05-13T09:05:31+00:00

In Master-Detail relationships, do Detail-tables contain ID columns? Or, should it? In Northwind database,

  • 0

In Master-Detail relationships, do Detail-tables contain ID columns?

Or, should it?

In Northwind database, OrderDetail doesn’t have an ID column.

  • 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-13T09:05:32+00:00Added an answer on May 13, 2026 at 9:05 am

    Any data table that you have that contains something you want to be able to retrieve should always contain a primary key – that’s it’s main job: uniquely identify a single row.

    Just because the details belong to a master row doesn’t mean they’re not full data rows themselves – they need to be identifiable in some way.

    So yes – I would recommend any detail table to have some form of a primary key (“ID”). Whether that’s somehow connected to the master-ID or not is something you might decide on a case-by-case basis – but there was to be a way to identify each detail row independently somehow.

    If you have a link table for a M:N relationship, typically, you’d only have the two foreign key columns (for tables 1 and 2) in there. That’s typically good enough, since the combination of those two FK is unique.

    The only reason to add a separate ID to such a table would be if you need to add additional pieces of information that describe the relationship per se. But even then, as long as the (key1, key2) combination is unique, that’s typically good enough.

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

Sidebar

Related Questions

Hi I have the database with huge data. there are several master-detail relationships within
I have a junction object, Purchase, with two master-detail relationships. One with Customer and
I am looking to make a Master Detail View. I have two tables tbFamily
I am designing database tables for a master-detail scenario. The specific requirement is that
I have two tables in a master-detail relationship. The structure is more or less
I have a master-detail relationship between 2 classes. The master class will contain a
I have a master-detail tables and I want to get list of master join
I'm trying to figure out how to implement master-detail relationships between 2 tables in
I have a Master-Detail Relationship between two Tables , I Select a Record in
I have 2 tables with a master-detail relationship. We use a DataGridView to handle

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.