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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:27:44+00:00 2026-06-11T10:27:44+00:00

I am building a record collection database. I have a main Release table with

  • 0

I am building a record collection database. I have a main Release table with Title, Artist, Format, Country, Date, Label, etc. – each of these will be a separate table with a Foreign Key connected back to Release. My question is, do all of the foreign keys in their separate tables connect to one Primary Key (id) in Release or do they each connect to a corresponding Index integer key in Release? And speaking of indexes – is it then necessary to create a separate index on all of the above which will be searched?

Thanks

  • 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-11T10:27:45+00:00Added an answer on June 11, 2026 at 10:27 am

    Given the info you have provided, you would have the following table structure

    Releases

    ID, Title, ArtistID, FormatID, CountryID, Date, LabelID

    Artists
    ID (foreign key to ArtistID in Releases table), Name, etc

    Formats
    ID (foreign key to FormatID in Releases table) , Name, etc

    ect etc.

    is it then necessary to create a separate index on all of the above
    which will be searched?

    Depends on how you’re planning to search the tables

    EDITED:

    OK so each of the foreign keys in each table connects to its own id in
    the Release table – not the primary id, correct?

    Exactly. ArtistID will connect to the Artists table where ID is the primary key, but in the Releases table it is a foreign key. Same idea for the rest of the fields, except the Date.

    As for search it would be for example, search Artist (table will have
    first name, last name or group name) which should connect to that
    Artist’s releases

    Then you create an index on ArtistFirstName and ArtistLastName fields – these are the fields in the Artists table, and that is what your search is going to search. If you wish to display the artist’s releases, then you have to join Artists and Releases tables on ArtistID (that you would get after search).

    It would help if you read up more on the relational database design and normalization.

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

Sidebar

Related Questions

I'm building a in codebehind. The table is a listing of a database records
Building an inventory system. I have lots of products and each product has three
Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't
I have the following Django Model which retrieves 3 records from a database. The
I'm using Active Record outside of rails and I have two AR classes similar
I have a client that wants to connect to his MySQL database using Dial-up/Modem
I'm building an Active Record query over a few lines: query = ForumThread.joins(:posts) query
I am building an application that would record what people say, generate an audio
I'm building an audio recording applet, so it needs permission to record sound. I
I'm building an application to record when my cat has an asthma attack. I'm

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.