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 to delete an existing database user?
How to find tables without indexes?
Differnce between sel server 2000 and 2005
how can u get last observation in an unknown dataset ?
What is dbcc? Give few examples.
What is clustered index
what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration
Can we create nonclustered index in a table without creating a clustered index
Do you know data definition language, data control language and data manipulation language?
What is the default Port No on which SQL Server listens?
About Indexed Views? with example? plz reply...
How to swap the data of two columns in a table. both the columns containing varchar values.
Oracle (3259)
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)