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

  • Home
  • SEARCH
  • 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 3495828
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:10:28+00:00 2026-05-18T12:10:28+00:00

I am starting a new Project for a website based on Talents – for

  • 0

I am starting a new Project for a website based on “Talents” – for example:

  • Models
  • Actors
  • Singers
  • Dancers
  • Musicians

The way I propose to do this is that each of these talents will have its own table and include a user_id field to map the record to a specific user.

Any user who signs up on the website can create a profile for one or more of these talents. A talent can have sub-talents, for example an actor can be a tv actor or a theatre actor or a voiceover actor.

So for example I have User A – he is a Model (Catwalk Model) and an Actor (TV actor, Theatre actor, Voiceover actor).

My questions are:

  1. Do I need to create separate tables to store sub-talents of this user?

  2. How should I perform the lookups of the top-level talents for this user? I.e. in the user table should there be fields for the ID of each talent? Or should I perform a lookup in each top-level talent table to see if that user_id exists in there?

  3. Anything else I should be aware of?

  • 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-18T12:10:28+00:00Added an answer on May 18, 2026 at 12:10 pm

    ok sorry for the incorrect answer.. this is a different approach.

    The way i see it, a user can have multiple occupations (Actor, Model, Musician, etc.) Usually what i do is think in objects first then translate it into tables. In P.O.O. you’d have a class User and subclasses Actor, Model, etc. each one of them could also have subclasses like TvActor, VoiceOverActor… in a DB you’d have a table for each talent and subtalent, all of them share the same primary key (the id of the user) so if the user 4 is and Actor and a Model, you would have one registry on the Actor’s Table and another on the Model Table, both with id=4

    As you can see, storing is easy.. the complicated part is to retrieve the info. That’s because databases dont have the notion of inheritance (i think mysql has but i haven’t tried it).. so if you want to now the subclases of the user 4, i see three options:

    • multiple SELECTs for each talent and subtalent table that you have, asking if their id is 4.

      SELECT * FROM Actor WHERE id=4;SELECT * FROM TvActor WHERE id=4;

    • Make a big query joining all talent and subtalent table on a left join

      SELECT * from User LEFT JOIN Actor ON User.id=Actor.id LEFT JOIN TvActor ON User.id=TvActor.id LEFT JOIN… WHERE User.id=4;

    • create a Talents table in a NxN relation with User to store a reference of each talent and subtalents that the User has, so you wont have to ask all of the tables. You’d have to make a query on the Talents table to find out what tables you’ll need to ask on a second query.

    alt text

    Each one of these three options have their pros and cons.. maybe there’s another one =)

    Good Luck

    PS: ahh i found another option here or maybe it’s just the second option improved

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

Sidebar

Related Questions

As a little side project, I am starting to build a new website for
Lets say you're starting a new web project that required the website to run
We are starting a new project to develop a website using django. We have
Starting a new project and would like to use one of the MVC framworks.
When starting a new project that required the use of membership providers I found
I'm starting a new project here (Windows Forms). What's the best option today for
I'm starting a new project which involves developing an interface for a machine that
I'm starting a new web project and I am considering two presentation frameworks. I
We are starting a new SOA project with a lot of shared .net assemblies.
I'm starting a new personal project on the side, so this is the first

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.