{"id":28,"date":"2023-11-28T22:43:28","date_gmt":"2023-11-28T22:43:28","guid":{"rendered":"http:\/\/vargas-solar.com\/db-fundaments\/?page_id=28"},"modified":"2023-12-13T15:27:13","modified_gmt":"2023-12-13T15:27:13","slug":"activity-1-designing-and-implementing-a-relational-database-29-12-2023","status":"publish","type":"page","link":"http:\/\/vargas-solar.com\/db-fundaments\/activity-1-designing-and-implementing-a-relational-database-29-12-2023\/","title":{"rendered":"Activity 1: Designing and implementing a relational database 29\/12\/2023"},"content":{"rendered":"\n<p><strong>Material<\/strong><br>&#8211; SQL Data Definition Language [<a href=\"https:\/\/drive.google.com\/file\/d\/14FyIwqIr-OOU4Zd8ZBbnB9naVWEeIMTZ\/view?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">SQL languages cheat sheet<\/a>]<br>&#8211; MERISE &#8211; Relational Model Transformation Rules [<a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/11j36w4jbGj9EMzc5dttawJfHDX4H5JaO\/view?usp=sharing\" target=\"_blank\"><strong>PDF<\/strong><\/a>]<\/p>\n\n\n\n<p>=========================================================<br>&#8211; <a href=\"https:\/\/drive.google.com\/file\/d\/12nxzyqk7-FSBKIv-HSbQh6ZmeF_CMLue\/view?usp=share_link\">Ch 17: Conception des BD<\/a> (in French, all <a href=\"http:\/\/georges.gardarin.free.fr\/Livre_BD.htm\">book chapters<\/a> available for free)<br>      Lire les sections 1 and 3 for the <strong>UML\/R transformation rules<\/strong><br>&#8211; <a href=\"https:\/\/drive.google.com\/file\/d\/14i-hgyopwq_T2D7a-qsaFzItiK3Gpyt5\/view?usp=share_link\">Ch 06: Mod\u00e8le Relationnel<\/a><br><a href=\"http:\/\/perso.modulonet.fr\/~placurie\/Ressources\/BTS1-Cgo1\/Chap_11_Passage_modele_relationnel.pdf\">&#8211; R\u00e8gles passage MCD\/R<\/a><br>      Material from a BTS program<br>&#8211; Video: <a href=\"https:\/\/www.youtube.com\/watch?v=spQ7IFksP9g&amp;list=PLroEs25KGvwzmvIxYHRhoGTz9w8LeXek0&amp;index=2\">Relational Model Explained<\/a><br>=========================================================<\/p>\n\n\n\n<p><strong><em>Objective<\/em><\/strong>: The research question is how to design a relational database (relations and constraints) that represents the mini-world described in the section Context.<\/p>\n\n\n\n<p><strong><em>Theory background<\/em><\/strong> [<strong><a href=\"https:\/\/drive.google.com\/file\/d\/11yuUVC0hLz1b5lXcuQ8i567JLg6R8N2c\/view?usp=sharing\" target=\"_blank\" rel=\"noreferrer noopener\">PDF<\/a><\/strong>]<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Relational databases principle and architecture<\/li><li>Relational model: the notion of relation (formal specification and implementation in RDBMS)<\/li><li>Relational database schema properties to avoid anomalies<\/li><\/ul>\n\n\n\n<p><strong><em>Todo<\/em><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Model the mini-world of the Olympic Games using MERISE\/UML formalisms. <\/li><li>Propose a DB schema representing this information. Express each relationship schema&#8217;s intention formally, and indicate the integrity constraints that you think are necessary to complete its semantics. Use transformation rules. [<a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/11j36w4jbGj9EMzc5dttawJfHDX4H5JaO\/view?usp=sharing\" target=\"_blank\">Transformation Rules Example<\/a>]<br><strong>***Example de mod\u00e9lisation et de sp\u00e9cification de sch\u00e9ma relationnel de BD ****<\/strong><br>[<a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/14FWMyRP2u-ND9BxdZU1drZj-lNbzsYxf\/view?usp=sharing\" target=\"_blank\">Mod\u00e8le Conceptuel &#8211; Relationne<\/a>l]<\/li><li>Illustrate the extension of two relationships; one must define a referential constraint concerning the other.<\/li><li>Write a DDL SQL script to implement and test the relational database schema on the RDBMS. [<a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/141KLRFCT0jrjhrACM_vPkFTOVepGcArY\/view?usp=sharing\" target=\"_blank\">Example de sp\u00e9cification en DDL<\/a> ]<\/li><li>Explore your schema<\/li><\/ol>\n\n\n\n<p>Note: <br>Assume the existence of the predefined domains INTEGER, CHAR, REAL, STRING, DATE, etc.<\/p>\n\n\n\n<p><strong><em>Deliverables<\/em><\/strong>:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Specification of the mini-world using MERISE\/UML (document) &#8211; 29\/12\/2023<\/li><li>Specification of the translation process from Merise to a relational database schema (document) &#8211; 29\/12\/2023<\/li><li>SQL script (data definition language) implementing the relation (code). Identify constraints associated to the definition of the relation and those delegated to the RDBMS and application 05\/12\/2023<\/li><li>Meta-data (script exploring the schema you have defined &#8211; code) 05\/12\/2023<\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Material&ndash; SQL Data Definition Language [SQL languages cheat sheet]&ndash; MERISE &ndash; Relational Model Transformation Rules [PDF] =========================================================&ndash; Ch 17: Conception des BD (in French, all book chapters available for free) Lire les sections 1 and 3 for the UML\/R transformation &hellip; <a href=\"http:\/\/vargas-solar.com\/db-fundaments\/activity-1-designing-and-implementing-a-relational-database-29-12-2023\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-28","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/vargas-solar.com\/db-fundaments\/wp-json\/wp\/v2\/pages\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/vargas-solar.com\/db-fundaments\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/vargas-solar.com\/db-fundaments\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/vargas-solar.com\/db-fundaments\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"http:\/\/vargas-solar.com\/db-fundaments\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":14,"href":"http:\/\/vargas-solar.com\/db-fundaments\/wp-json\/wp\/v2\/pages\/28\/revisions"}],"predecessor-version":[{"id":87,"href":"http:\/\/vargas-solar.com\/db-fundaments\/wp-json\/wp\/v2\/pages\/28\/revisions\/87"}],"wp:attachment":[{"href":"http:\/\/vargas-solar.com\/db-fundaments\/wp-json\/wp\/v2\/media?parent=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}