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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:38:19+00:00 2026-05-13T17:38:19+00:00

Consider the following table structure: titles(titleID*, titleName) platforms(platformID*, platformName) products(platformID*, titleID*, releaseDate) publishers(publisherID*, publisherName)

  • 0

Consider the following table structure:

titles(titleID*, titleName)  
platforms(platformID*, platformName)  
products(platformID*, titleID*, releaseDate)  
publishers(publisherID*, publisherName)  
developers(developerID*, developerName)  
products_publishers(platformID*, titleID*,publisherID*)  
products_developers(platformID*, titleID*, developerID*)  

The products table is a joiner table using two foreign keys of platformID and titleID. This is because some titles have the same attributes across different platforms. To avoid data repetition, I created the joiner table.

My question arises when I create a products_publishers table. Because one product can have several publishers, I have to create a joiner table made from three foreign keys. Is this best practice? My scenario could have me create a table with four such entries. I considered using a column to store this data in the products table and forgo the joiner table and publisher table, but intuitively this does not feel right.

Any thoughts?

Many thanks

  • 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-13T17:38:19+00:00Added an answer on May 13, 2026 at 5:38 pm

    This is quite normal and refer to as composite keys. Another common strategy I have seen is to also give the table a primary key (surrogate key) like all the other tables. Some of the reasons for doing:

    • consistent data model where each of
      your table has a primary key
    • it makesjoining easier and faster too
      on a single key compared to
      composite keys joining
    • if you use the data model with
      ORM, it is usually better supported and make your code easier and cleaner to deal with single key than multiples.

    I personally think that two composite keys are workable, but once you have three or more, you should really consider introducing surrogate key. Which ever strategy you choose, you just need to be consistent with it in your data model.

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

Sidebar

Related Questions

Please consider following sample table structure: +-------------------------------+--------------+------+-----+---------+-------+ | Field | Type | Null |
Consider the following structure : alt text http://aeon-dev.org/pap/pap_db.png Ignore the table user_token. Now, imagine
Consider the following table structure with data - AdjusterID | CompanyID | FirstName |
Please consider the following table structure on Oracle: create table DOCS ( DOC_NO NUMBER
Consider the following table structure: id name rank position ------------------------------- 1 Steve 5 0
Please consider the following table structure and data: +--------------------+-------------+ | venue_name | listed_by |
Consider the following table structure (not designed by me, and unchangable): +---------------+-----------------------------+---------------------------+ | the_id
Consider the following table structure: <table style=width:150px;> <tr> <td>some dynamicly generated content that can
Please consider the following table structure (this is sample data, so please ignore the
Consider the following table which has the fields - id (int) and date_created (datetime):

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.