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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:50:54+00:00 2026-05-13T18:50:54+00:00

I’m sure my terminology is wrong, which is probably the reason google isn’t helping

  • 0

I’m sure my terminology is wrong, which is probably the reason google isn’t helping me. Anyways here is my problem and maybe you can deduce what my real question is…I hope

Ok let’s say I have a table called MOVIE this table has the values (columns?) for Name, ReleaseDate and Staring now my issue is how do i have the Staring value contain multiple values?

Do I make a separate table STARS with the columns Key, Actor1, Actor2 etc…? Where the Staring value from the MOVIE table points to the PK of the STARS table.

Key | Actor 1 | Actor 2 | …..
———————————-
01 | Bob Bob | John Bob | …….
02 | Jim Bob | John Bob | …….

However, The problem with this is that the table would be static and will need to have a preset number of actors.

OR

Is there a way to store multiple actorID’s (PK’s from the Actors table) in the Staring values from the MOVIE table? for example:

Name | ReleaseDate |
Staring
————————————-
blah | 1999 | 21, 46, 392, 182, 30
blah pt2 | 2001| 3, 11, 412

Anyways anything will be of help at this point and will be greatly appreciated.

  • 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-13T18:50:54+00:00Added an answer on May 13, 2026 at 6:50 pm

    In this kind of situation, you generally use 3 tables :

    • 1 table for the actors data ; one line per actor ; primary key = id of the actor
    • 1 table for the films data ; one line per film ; primary key = id of the film
    • 1 table that acts as a link between those ; primary key = id of the film + id of the film

    Here, it would mean :

    • STARS
      • id
      • name
    • MOVIE
      • id
      • title
      • release_date
    • MOVIES_STARS
      • id_movie
      • id_star

    And, to get a movie :

    select * 
    from movie
    where id = X
    

    And to get the actors in that movie :

    select stars.*
    from stars
        inner join movies_stars on movies_stars.id_star = stars.id
    where movies_stars.id_movie = X
    

    And you can even join to the movies table, if needed 😉

    A couple of keywords :

    • Join table
    • Many-to-many relationship
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure I'm missing the correct terminology here, but for this example many-to-many relationship:
Not sure what exactly is going on here, but seems like in .NET 1.1
Not sure if the title is quite right for the question but I can't
Not sure if this is intended behavior or a bug or a wrong function
Not sure what's going on here. I have a DateTime object, and when I
Not sure what the terminology is for it but on Vim the 'cursor' is
I'm not sure if I'm using the write terminology in the title of this
Not sure if this is possible or if I'm expressing correctly what I'm looking
Pretty sure this question counts as blasphemy to most web 2.0 proponents, but I
Not sure how to ask a followup on SO, but this is in reference

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.