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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:51:17+00:00 2026-06-11T17:51:17+00:00

I have designed the following but I am looking for a simpler way to

  • 0

I have designed the following but I am looking for a simpler way to design it (currently when I am going to retrieve list of subcategories that user is interested I should have different queries for each type of sport) :

User table has users info each user is interested in number of sport categories, each category has different subcategories, user can be interested in category (all subcategories) or just a number of subcategories of a particular category.

User      UserID                                         12

Sport     CategoryID Category                            1 Aquatic,    2 Running 

Aquatic   SubCategoryID SubCategory,CategoryID           1 Swimming 1, 2 Surfing 2 

Running   SubCateogryID SubCategory,CategoryID           1 200m 2,     2 300m 2 

LikeSport UserID CateogryID SubCategoryID                12 1 1,       12 2 nill

It shows user with ID 12 likes Aquatic sport but just Swimming and likes all type of Running Sports.

  • 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-11T17:51:18+00:00Added an answer on June 11, 2026 at 5:51 pm
    Users:                         UserID
    Categories:                    CategoryID, CategoryName
    Subcategories:                 SubcategoryID, SubcategoryName
    CategoriesSubcategories:       CategorySubcategoryID, CategoryID, SubcategoryID
    LikeSports:                    UserID, CategorySubcategoryID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables that I designed this way with a possible reshuffling of
I have a poorly designed table that I did not design and cannot fix/change
I have the following regexp: (?P<question>.+(?<!\[\[)) It is designed to match hello world! in
I have designed a menu that consists of a few buttons in several different
I have designed a custom section handler before but I'm faced with a problem
I have designed the following custom layout to be inflated into a DialogFragment then
I have the following models: class User < ActiveRecord::Base has_many :subscriptions end class Subscription
i have designed a model for a website with the following domain objects: Article
I've been looking for a way to produce the following HTML table with CSS:
I have the following function, designed to walk through XML and create a linear

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.