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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:25:17+00:00 2026-06-02T06:25:17+00:00

I am trying to create a database with a table called MEETING . So

  • 0

I am trying to create a database with a table called MEETING.

So every instance of a meeting, just like real life can contain a variable amount of people in it.

So meeting1 (inside MEETING) may contain user1, user2, user3.

but meetings2 (again inside MEETING) may contain user1, user4, user6, user7.

How would I go about handling such a scenario. I was thinking of creating an array, but I am not sure how to do it.

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

    You would use what is called a join table. You would have three tables: MEETING, USER, and the join table (it could be called MEETING_USER or something like that). Your user table would contain information about each user (at the very least, some identifier and a username). Each meeting would also have a unique ID as well. Your join table would then have rows in the format , with a new entry for each user at a meeting. This facilitates what is called a many-to-many relation since each meeting can have many users and each user can attend many meetings.

    Some sql engines in MySQL allow you to add “foreign key mappings” so that it runs pretty fast when searching for all users in a meeting or all meetings a user has attended. Other database servers (MSSQL, etc) also support this kind of thing.

    Example:

    • Meeting 1 has id 123
    • Meeting 2 has id 345
    • User 1 has id 3
    • User 2 has id 4
    • User 3 has id 5

    If Meeting 1 was attended by users 1 and 3, the join table would have the following entries in it somewhere:

    • 123, 3 (meeting 1, user 1)
    • 123, 5 (meeting 1, user 3)

    If Meeting 2 was attended by everyone, the join table would have these entries put in it:

    • 345, 3 (meeting 2, user 1)
    • 345, 4 (meeting 2, user 2)
    • 345, 5 (meeting 3, user 3)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create an application which requires a two table SQLite database
I am trying to create a table with a database field of type DATE
I am trying to create an ActiveRecord model called 'Search' without a table. I
I'm trying to create a database with 12 different tables which has been working
I'm trying to create a basic database trigger that conditionally deletes rows from database1.table1
I'm trying to reindex a table in a simple database that I created using
Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
im trying to create a database for a feedback application in ASP.net i have
I'm trying to create a Database object for myself in .net. The constructor takes
I am trying to create a database deadlock and I am using JUnit. I

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.