Child records where no parent exists?

This is a great interview question:

How can there be child records where no parent exists?

This is actually a trick question. There can exist child *records*, but no *values* for the column that references a non-existent parent. In other words, the column that references the parent in the child record must be null, or reference a parent value that exists in the parent.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.