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

The Archive Base Latest Questions

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

I want to know if there is a way to have multiple values in

  • 0

I want to know if there is a way to have multiple values in a single field in a MySQL database where each value is a foreign key referencing one other table.

I am designing a database with a product table and a product certification table.

I am using InnoDB and foreign key constraints.

The “product” table contains the details about specific instances of the product. One of the details contained in the product table is the column “product_certification_id”, which is a foreign key referencing an index in the two column “product_certification” table.

The product certification table contains the possible certifications that an instance of a product may have.

My problem stems from the fact that the product certifications are not mutually exclusive, so I am curious if it is possible to have multiple foreign key values in the same field referencing the same table.

Also, I am concerned about the possibility of more certifications being added in the future, so I need to design this in an easily scalable fashion in that sense.

Thank you for your thoughts.

  • 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-24T18:31:02+00:00Added an answer on May 24, 2026 at 6:31 pm

    What you typically do is set up a many to many relationship with an intermediate linking table. Some thing like the following:

    CREATE TABLE product (
      `id` integer AUTO_INCREMENT NOT NULL,
      -- other cols --
      PRIMARY KEY (`id`)
    );
    
    CREATE TABLE certification (
      `id` integer AUTO_INCREMENT NOT NULL,
      -- other cols --
      PRIMARY KEY (`id`)
    );
    
    CREATE TABLE product_certification (
       `product_id` integer NOT NULL,
       `certification_id` integer NOT NULL,
       PRIMARY KEY (`product_id`, `certification_id`),
       CONSTRAINT `product_id_product_id` 
         FOREIGN KEY (`product_id`) 
         REFERENCES `product` (`id`) ON DELETE CASCADE,
       CONSTRAINT `certification_id_certification_id` 
         FOREIGN KEY (`certification_id`) 
         REFERENCES `certification` (`id`) ON DELETE CASCADE
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know if there is a way to specify that in multiple
Ok, i have a table having multiple values. Now i want to know which
I want to know is there any way that I can remove duplicates from
I want to know is there any way or message in MFC by which
I want to know if there's any way to update from all versions (Example:
I want to know if there is a way to display an external php
I want to know if there is any way to fix all the PEP-8
I want to know if there is any way by which I can paste
I've got magazine app and I want to know If is there any way
I want to know if there is a better way (than what I'm currently

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.