{"id":832,"date":"2026-01-26T14:17:32","date_gmt":"2026-01-26T18:17:32","guid":{"rendered":"http:\/\/stephendavies.org\/cpsc350\/?p=832"},"modified":"2026-01-26T14:17:32","modified_gmt":"2026-01-26T18:17:32","slug":"assignment-1-hint","status":"publish","type":"post","link":"http:\/\/stephendavies.org\/cpsc350\/?p=832","title":{"rendered":"Assignment #1 hint"},"content":{"rendered":"<p>Remember that your database must know who the <i>pilot<\/i> was, and who the <i>co-pilot<\/i> was, for each individual flight. It is <b><i>not<\/i><\/b> sufficient for it to know that &#8220;these two people were the crew members, but I don&#8217;t know which one was the pilot and which one was the co-pilot that day.&#8221;<\/p>\n<p>(Hint: instead of a many-to-many association, where &#8220;many&#8221; is &#8220;exactly 2,&#8221; use two <i>different<\/i> many-to-one associations, one for the pilot, and one for the co-pilot.)<\/p>\n<p>The same thing is true for departure and arrival airports. It&#8217;s not enough for your database to know &#8220;Frontier Airlines 77 connects Boston and Detroit, but I&#8217;m not sure whether it goes from Boston to Detroit or from Detroit to Boston.&#8221; It <i>must<\/i> know that the origin airport is Detroit, and the destination airport is Boston.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remember that your database must know who the pilot was, and who the co-pilot was, for each individual flight. It is not sufficient for it to know that &#8220;these two people were the crew members, but I don&#8217;t know which one was the pilot and which one was the co-pilot that day.&#8221; (Hint: instead of [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[],"class_list":["post-832","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/posts\/832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=832"}],"version-history":[{"count":1,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/posts\/832\/revisions"}],"predecessor-version":[{"id":833,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=\/wp\/v2\/posts\/832\/revisions\/833"}],"wp:attachment":[{"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=832"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stephendavies.org\/cpsc350\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}