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 |
Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?
How do you open a cluster administrator?
What is triggers and its types?
I Have Employee table having column name as ID,SALARY how to get second max salary from employee table with id ex ID SALARY 1 20000 7 37000 2 5000
17 Answers HCL, IBM,
How would you retrieve Unique rows from table without using UNIQUE and DISTINCT keyword?
how to get max salary with employee number by using one select query and max function ??
What is the function of sql server agent windows service?
can a table be moved to different filegroup? : Sql server administration
In which year relase the 7.0& 2000 & 2005?
What happens if you add a new index to large table?
What are the different types of collation sensitivity?
How to insert multiple rows with one insert statement in ms sql server?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)