Why foreign key column allowing null values even a parent
tables reference key column not having null value..

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to execute multiple stored procedures at one time in sql server?

701


How many ways to create table-valued functions?

762


How to add the custom code in Report?

112


What are the main sources of data?

821


What is public role in sql server?

759


How do I view a stored procedure in sql server?

746


What is sql server 2000 work load governor?

744


What is the purpose of sql profiler in sql server? : sql server database administration

823


How can we improve performance by using SQL Server profiler?

757


What are the different kinds of ssrs reports?

192


How to declare and use cursor variables?

774


What is SQL Azure Fabric?

106


How to apply filtering criteria at group level with the having clause in ms sql server?

760


How to create a new schema in a database?

771


Why people hate cursor?

903