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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:03:47+00:00 2026-06-14T15:03:47+00:00

I am building a system where there are properties and prospects, I have a

  • 0

I am building a system where there are properties and prospects, I have a table for both, but as I see this as a many to many relationship, I have created a table called prospect_property with two columns prospect_id and property_id, these are both/composite primary key(s).

What I am having problems with is setting the foreign keys and binding it all together. I figure the composite key should be the foreign key on the other two tables (or is it the other way around), but when trying to create that relationship in Management Studio, I have to reference one to one field, but I have one vs. two…

How am I supposed to set the relationship between these tables so that I for a prospect can see all properties and for a property can see all prospects?

SQL SERVER 2012 (Express)

  • 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-14T15:03:49+00:00Added an answer on June 14, 2026 at 3:03 pm

    1 Property –> several prospect_property (link on PropertyId on both sides)
    1 Prospect –> several prospect_property (link on ProspectId on both sides)

    Property: PropertyId is PK
    Prospect: ProspectId is PK
    prospect_property: composite PK made of PropertyId and ProspectId
    PropertyId is FK to Properties and ProspectId is FK to Prospects

    There is no more than this. The rest wil be done by buiding a few views linking all that togheter.

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

Sidebar

Related Questions

First off, I'm aware that there are many questions related to this, but none
Building an inventory system. I have lots of products and each product has three
I am building a system for my client. It's a lot like www.getafreelancer.com. There
I'm building a system for selling tickets to events. Right now there are about
I've been building a rather complex system and there's come the time now where
I am building a system of clustered computers with several nodes. there is a
What I'm trying to do: I'm building a system where there are different types
I'm building a system in which there are the following tables: Song Broadcast Station
I'm building a system in which there are the following tables: Song Broadcast Station
I am building a DDD system and we have all the requirements on paper

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.