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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:39:00+00:00 2026-06-08T06:39:00+00:00

I have 2 tables call products and combo. products table will have all the

  • 0

I have 2 tables call products and combo.
products table will have all the products data’s like sn,product name, product price, product image…etc

and combo table is to group the products like
first product’s id
second product’s id
third product’s id will be in a one group called Set 1

i need to get the combo products details using one to many in mysql.

how it can be done

Thank in advanced

  • 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-08T06:39:02+00:00Added an answer on June 8, 2026 at 6:39 am

    You can use the lookup table pattern:

    You can try designing the schema so that each product => combo pair is one row.

    For example:

    product_id, combo_id
    product_1, combo_1
    product_2, combo_1
    product_3, combo_1
    product_1, combo_2
    

    When you do a select from the tables, you’ll want to use some very good joining and grouping:

    "select product.product_name, combo.combo_id from combo, product where product.product_id = combo.combo_id and combo_id = 'combo_1'";

    Anyway, read up on methods to do lookup tables. This is just my suggestion of how you might want to design the schema.

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

Sidebar

Related Questions

I have a table (call it table myTable). It has the data like this:
I have two tables namely 'categories' & 'products' as follows: categories id | name
I have a table of products on my page, each product has zero or
I have 2 related database tables which in simplified form look like this Product(
I have the following HTML: <table class=products> <tr> <td>Product description probably goes here</td> <td><a
This is my scenario: I have two different tables: Table 'subscriptions' contains all the
Basically have a table of products, something similar to: <table> <tr> <td>Product 1 <br>
I have a table Information which is something like this: ID From To Product
I have two mysql tables called Product and Category Product id name category 1
I have a MySQL table which contains a list of all possible products a

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.