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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:21:15+00:00 2026-05-25T17:21:15+00:00

I have a group table – should option_id or extras_id should be in separate

  • 0

I have a group table – should option_id or extras_id should be in separate tables or all in one table? See below what I meant:

group table:

mysql> select * from `group`;
+----+-----------+--------+
| id | name      | type   |
+----+-----------+--------+
|  1 | Group One | extra  |
|  2 | Group Two | option |
+----+-----------+--------+

There are two of group (extra or option).

group_extra table:

mysql> select * from `group_extra`;
+----+----------+----------+
| id | group_id | extra_id |
+----+----------+----------+
|  1 |        1 |      123 |
|  2 |        1 |      124 |
+----+----------+----------+

group_id = 1 have a list of ref extra_id

group_option table:

mysql> select * from `group_option`;
+----+----------+-----------+
| id | group_id | option_id |
+----+----------+-----------+
|  1 |        2 |        45 |
|  2 |        2 |        46 |
+----+----------+-----------+

group_id = 2 have a list of ref option_id

group_option_extra table:

mysql> select * from `group_option_extra`;
+----+----------+-----------+----------+
| id | group_id | option_id | extra_id |
+----+----------+-----------+----------+
|  1 |        1 |         0 |      123 |
|  2 |        1 |         0 |      124 |
|  3 |        2 |        45 |        0 |
|  4 |        2 |        46 |        0 |
+----+----------+-----------+----------+

Or should the table look like this, combine group_option and group_extra into one? which one is recommended.

  • 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-25T17:21:15+00:00Added an answer on May 25, 2026 at 5:21 pm

    Keep them separate.

    You don’t really need the type column – you can just check if any rows exist in the other tables to see which type it is.

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

Sidebar

Related Questions

I have a table like this one: id group value 1 GROUP A 0.641028
I have two tables: groups and group_members . The groups table contains all the
Say, I have two tables like these: Table group Table user +----+-----------+ +----+----------+------+----------+ |
I have the following query: select column_name, count(column_name) from table group by column_name having
I have the following example in a SQL table Cust Group Sales A 1
I've configured a db w/ a FileStream group and have a table w/ File
I have a table like this: name code group john 12 smith 15 how
I have a table that includes some student group name, lesson time, day names
I have a table widget in reporting services where I group rows on a
Lets say I have a table: -------------------------------------- | ID | DATE | GROUP |

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.