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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:15:23+00:00 2026-06-16T00:15:23+00:00

I am working on a program where I would like to like create a

  • 0

I am working on a program where I would like to like create a Group with Users which is then always there and saved in a MySQL Database. I just don’t have any clue how to do this. I mean I could create a Table like:

GROUPID INT PRIMARY KEY
GROUPNAME TEXT
USER1ID INT
USER2ID INT
USER3ID INT

Then I would have to create A table which can take like lets say in this case 3 Users but isn’t that a not performant and no possibility to dynamically make the group bigger. If I would like to make a friends list out of the Group then I also can’t say that the User can have only 3 Friends. How can I solve this problem?

  • 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-16T00:15:24+00:00Added an answer on June 16, 2026 at 12:15 am

    You need 2 tables:

    GROUPS - GroupId, GroupName
    USERS - UserId, UserName, Password, GroupId
    

    The GroupId in USERS links user entries to GROUPS. You can (should) also impose the link using a foreign key.

    If a user can belong to more than one group, you will need a many-to-many relationship. This is achieved with a 3rd table that looks like this:

    GROUPS - GroupId, GroupName 
    USERS - UserId, UserName, Password
    USERS_GROUPS - UserId, GroupId
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a C#/.NET 3.5/Windows Forms program. I would like to create a
I am working with a consulting group on a program which currently uses a
I'm working on a program in Python for Windows, and would like to save
I am working on a program and need ot know how I would read
I have a program that I'm working on that register global hotkeys I would
is there any small working program for recieving from and sending data to client
I'm trying to get a simple winsock program working, so I create my socket
I've got a website which contains the profile of users. I am now working
I am working on understanding collision detection and have decided to create a program
I would like to compress a directory using 7-Zip and then download it to

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.