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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:19:57+00:00 2026-05-31T19:19:57+00:00

Im having difficulty trying to design a database structure for the following scenario: My

  • 0

Im having difficulty trying to design a database structure for the following scenario:

My database should contain general user information UserID, FirstName,
LastName, JoiningDate.

Each User can be part of a group.

Each group has “tags” attached to it and can have multiple tags. Users
should also be able to return a list of available groups (filtered by
tags).

Be able to search for a group (by tags attached to the group), and
searching for particular users (by last name, or unique ID). ). It should also be able
to return a list of available groups (filtered by tags), and the
members of a particular group (filtered by last name and filtered by
joining date).

There should also be a means of discovering which
groups of users belong to a number of groups (a query on
“who are the members of “Bravo group” and the “Delta”
group), and keeping track of messages sent in the group (like a
forum).

Is this just two tables? Or should it be three tables… Users, Groups and Tags? Its been almost a year since ive did any relational database stuff and I was wondering if anyone could show a visual representation of this database design?

  • 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-31T19:19:58+00:00Added an answer on May 31, 2026 at 7:19 pm

    I suggest five tables: Users, Groups, Tags and link tables UserGroups and GroupTags.

    This is because there appears to be a many-to-many relationship between Users and Groups, and between Groups and Tags – a link entity is required in relational design to join entities with many-to-many relationships between them.

     ---------   ------------   --------
     | Users |   |  Groups  |   | Tags |
     ---------   ------------   --------
         |         |      |        |
         |         |      |        |
        /|\       /|\    /|\      /|\
       --------------    -------------
       | UserGroups |    | GroupTags |
       --------------    -------------
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to convert the following but am having difficulty. Can anyone see where I'm
I am having difficulty trying to get a very simple scenario working with PRISM
Im trying to use Keys and Indexson a database and having difficulty. My requirements
I am having difficulty opening my database in my class. I am trying to
I'm having a great deal of difficulty trying to achieve something that should be
im having some difficulty trying to pull out a specific value from a cookie.
I'm having a great deal of difficulty trying to figure out the logic behind
I'm having difficulty using MooseX::Declare properly when calling BUILDARGS. I'm trying to create an
I'm trying to use this library (which looks very nice) but I'm having difficulty
I'm trying to learn the MapKit with Monotouch and I'm having difficulty figuring out

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.