Why foreign key column allowing null values even a parent
tables reference key column not having null value..
Answers were Sorted based on User's Feedback
Answer / rajkumar
Foreign key consider only the values. According to null value is not a value.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sureshramsing@gmail.com
Yes foreign key column allows null values, if it is not having either primary key or not null constraints.
Foreign key just reference to the particular parent column only not for restrcting the data while insert or update. It verifies dependency at the time of delete only.
Is This Answer Correct ? | 1 Yes | 1 No |
How do I partition a table in sql server?
i want to create procedure for create table in sql server 2005 for example create procedure create_table @table varchar(20) as create @table( id int, name char(20) ) but it will get error what is solution?
Explain transaction isolation levels in sql server?
What are the character string functions supported by sql server 2005?
How you can change a cross join into an inner join?
What is the difference between delete and truncate statements?
explain what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration
How can we solve concurrency problems?
Define msdb database?
What are the new security features added in sql server 2012? : sql server security
Does server sql treat char as a variable-length or fixed-length column?
Can a stored procedure call itself(recursive). If yes what level and can it be controlled.?