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



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

Answer / rajkumar

Foreign key consider only the values. According to null value is not a value.

Is This Answer Correct ?    1 Yes 0 No

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

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

Post New Answer

More SQL Server Interview Questions

How to drop an existing schema in ms sql server?

0 Answers  


The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio

0 Answers  


What are the types of database schema? : sql server analysis services, ssas

0 Answers  


Wht is the difference between stored procedure and trigger

6 Answers   HCL, TCS,


What is DCL?

0 Answers  


Can select statements be used on views in ms sql server?

0 Answers  


What are different types of raid configurations? : SQL Server Architecture

0 Answers  


Find columns used in stored procedure?

0 Answers  


If i am handling 150 servers then how to check the active jobs of all the servers?

0 Answers  


What are the difference between primary keys and foreign keys?

0 Answers  


What is dirty read?

0 Answers  


What is indexed view? How to create it?

0 Answers  


Categories