Question DB-REL-0019
HardCan a foreign key column contain NULL?
- A.
No, never
- B.
Yes, unless it is declared NOT NULL; NULL means the row refers to nothing yet
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Relational Model and Keys question
Can a foreign key column contain NULL?
No, never
Yes, unless it is declared NOT NULL; NULL means the row refers to nothing yet
Sign up free to see the answer and a step-by-step explanation.
Only if it is also a primary key
Only in NoSQL databases