Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null Foreign Keys
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database design
Title:
Null Foreign Keys
Environment versions
SQL Server:
SQL Server 2012
Application:
Desktop
Miscellaneous
Thread ID:
01622856
Message ID:
01622856
Views:
67
Assuming a StockItems Table and a Transactions Table. If I want the Transactions Table to have a Foreign Key into the StockItems, and the StockItems to have a foreign keys into Transactions, there's no way I will be able to add a record in both tables (some Transactions will add StockItems) during the same transaction if I make both Foreign Keys non nullable.

a) Is there?
b) Is it ok the set foreign keys nullable?
c) Is it not best practice to cross reference like this?
d) is there anything else wrong in my reasoning?

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Next
Reply
Map
View

Click here to load this message in the networking platform