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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:58:38+00:00 2026-06-12T16:58:38+00:00

Here is the problem: We have 3 tables (MS SQL 2008 R2): Table 1

  • 0

Here is the problem:
We have 3 tables (MS SQL 2008 R2):

Table 1 FILMS (table with films)

Table 2 Songs (table with songs)

Table 3 Titles

Since “Films” and “Songs” can contain more than one title (I have many titles on different languages), I want to keep all of the titles in the separate table “Titles”. Primary keys in tables Films and Songs are based on [int] identity specification with increment +1.

So for example: we can have a film and song with ID=3.

How can I join table “Titles” with “Films” and “Songs”?

P.S. I tried to create unique keys by adding a new column [idKey] with formula to FILMS an SONGS

for Films it was (CONVERT([nvarchar](10),[ID],(0))+'f')

for Songs it was (CONVERT([nvarchar](10),[ID],(0))+'s')

where [ID] is their identity specification
But I wasn’t able to mark this column as a primary key

  • 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-12T16:58:39+00:00Added an answer on June 12, 2026 at 4:58 pm

    even if you don’t have foreign key constrain in between this three table, you get the the data by joining three table.

     SELECT title.*, film.*,songs.* 
     FROM title t JOIN film f
        ON t.title_name = f.title_name
     JOIN songs s
        ON t.title_name = s.title_name
    

    the point is at-least two table should have a general column

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

Sidebar

Related Questions

Here is one very interesting problem. I am using SQL Server 2008. I have
Background: Entity Framework 4, with SQL Server 2008 Problem: I have a table Order
Here is my problem - I have 2 tables: WORKER, with columns |ID|OTHER_STAF| ,
I have a bit of an architecture problem here. Say I have two tables,
Here is the problem: I have two columns in a table that, for each
here is a simple problem. I have a table of 500 rows and what
Here's an example of my problem on jsFiddle. I have a table with striped
I have a problem with sorting items in table in PHP. Here is what
I have encountered a problem of placing data into the Table View. Here is
I have a question about User-Defined Table Types in SQL Server 2008. For the

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.