{"id":5730,"date":"2016-09-19T11:53:34","date_gmt":"2016-09-19T16:53:34","guid":{"rendered":"http:\/\/appcrawler.com\/wordpress\/?p=5730"},"modified":"2016-09-19T11:54:25","modified_gmt":"2016-09-19T16:54:25","slug":"child-records-where-no-parent-exists","status":"publish","type":"post","link":"http:\/\/appcrawler.com\/wordpress\/2016\/09\/19\/child-records-where-no-parent-exists\/","title":{"rendered":"Child records where no parent exists?"},"content":{"rendered":"<p>This is a great interview question:<\/p>\n<p>How can there be child records where no parent exists?<\/p>\n<p>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.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/appcrawler.com\/wordpress\/2016\/09\/19\/child-records-where-no-parent-exists\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/5730"}],"collection":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/comments?post=5730"}],"version-history":[{"count":2,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/5730\/revisions"}],"predecessor-version":[{"id":5739,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/5730\/revisions\/5739"}],"wp:attachment":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/media?parent=5730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/categories?post=5730"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/tags?post=5730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}