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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:21:45+00:00 2026-06-17T09:21:45+00:00

I am using MS SQL Server 2012 . I have two tables, one for

  • 0

I am using MS SQL Server 2012. I have two tables, one for doctors and another for surgery centers. Each table currently contains columns that describe how they (doctors and surgery centers) should receive reports (email, fax…) The columns that hold this data in both tables are identical. I am thinking to pull the delivery method columns out of each table and make a common delivery method table, but I would need to have foreign keys for both the doctor and surgery center in each row. This is troublesome as there is a one to one relationship between the delivery method and the doctors. This same relationship exits for the surgery center table.

Question:

  1. Is it good practice to have a table with two foreign keys and one of them would always be null?
  2. What is the best strategy to handle such a case.

The reason I would like to pull the delivery method information from the doctors and surgery center tables is to reduce the overall size of the tables. Also this will better normalize my data. I appreciate any and all help and guidance.

  • 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-17T09:21:46+00:00Added an answer on June 17, 2026 at 9:21 am

    You have the relationship going from the delivery method to the dr/centers, instead of from the dr/center to the delivery method.

    If you reverse the relationship, not only do you eliminate the need to have a table with a potentially unsed column, you can share delivery methods amoung multiple drs and centers. You say that there is a 1 to 1 relationship, but if there is not a business rule that PREVENTS a dr or center from having the same delivery method as any other dr or cent, then what you have is actually a many to 1 relationship (many dr/centers can have the same delivery method) even if in practice it is unique.

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

Sidebar

Related Questions

Using SQL Server 2012 Express. I have a table which represents key/value pairs. keycol
I am using SQL Server 2012 I have a table called AMOUNTS and a
We have an issue upgrading to SQL Server 2012. I am using the following
Using SQL Server 2008. I have multiple Locations which each contain multiple Departments which
[using SQL Server 2005] I have a table full of users, I want to
I am using SQL Server 2012 and am creating a table in the following
I am using SQL Server 2008 and SSMS 2012. I have a stored procedure
Im using SQL Server 2012 and I have a case where I have to
I'm using SQL Server 2008 R2 and I have a database which contains two
Using SQL Server 2005, upgrading to 2012 If I have an ETL the does

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.