Changes between Version 1 and Version 2 of RelationalDesign


Ignore:
Timestamp:
05/05/26 11:25:07 (27 hours ago)
Author:
232012
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationalDesign

    v1 v2  
    1 Relational Design ¶
     1= Relational Design
     2
    23Descriptive representation of the relational schema (syntax as used in lectures/exercises - listed relational schemas, attributes, marked primary and secondary keys)
    34
    4 DDL script for creating the database schema and objects:
     5== DDL script for creating the database schema and objects:
    56
    6 The script should (re-)create the schema, all the tables, with all constraints, and all other relevant database objects.
    7 The script should work in an empty database to fully construct everything needed for the project, and should also work in a database where the schema, tables and other objects are already created and they need to be re-created. So drop existing objects and create them again.
    8 The script should be named schema_creation.sql
    9 Link the script in this section in the RelationalDesign wiki page as an attachment to the page.
    10 DML script for filling tables with data:
     7* The script should (re-)create the schema, all the tables, with all constraints, and all other relevant database objects.
     8* The script should work in an empty database to fully construct everything needed for the project, and should also work in a database where the schema, tables and other objects are already created and they need to be re-created. So drop existing objects and create them again.
     9* The script should be named schema_creation.sql
     10* Link the script in this section in the !RelationalDesign wiki page as an attachment to the page.
    1111
    12 The script should (re-)create all the data in your tables
    13 The script should work with empty tables to fully load all needed data for the project, and should also work in a database where the tables already have data and need to be emptied and the data should be imported again.
    14 The script should be named data_load.sql
    15 Link the script in this section in the RelationalDesign wiki page as an attachment to the page.
    16 Relational diagram
     12== DML script for filling tables with data:
    1713
    18 DBeaver is the recommended tool for working with the assigned database, if you follow the instructions for connecting to the database.
    19 In DBeaver it is possible to create a relational schema diagram for the entire project schema. Double click on the project schema to open it's properties dialog, then switch to the ER diagram tab. The diagram will be automatically created based on the created objects in the schema.
    20 Switch the diagram to use crow-feet notation.
    21 Visually adjust the diagram to have the same positioning of tables and relations as the corresponding entities and relations in the ER diagram in the previous phase.
    22 Export the diagram to a file named relational_schema.jpg and attach it in this section.
     14* The script should (re-)create all the data in your tables
     15* The script should work with empty tables to fully load all needed data for the project, and should also work in a database where the tables already have data and need to be emptied and the data should be imported again.
     16* The script should be named data_load.sql
     17* Link the script in this section in the !RelationalDesign wiki page as an attachment to the page.
     18
     19== Relational diagram
     20
     21* DBeaver is the recommended tool for working with the assigned database, if you follow the instructions for connecting to the database.
     22* In DBeaver it is possible to create a relational schema diagram for the entire project schema. Double click on the project schema to open it's properties dialog, then switch to the ER diagram tab. The diagram will be automatically created based on the created objects in the schema.
     23* Switch the diagram to use crow-feet notation.
     24* Visually adjust the diagram to have the same positioning of tables and relations as the corresponding entities and relations in the ER diagram in the previous phase.
     25* Export the diagram to a file named relational_schema.jpg and attach it in this section.