| Version 2 (modified by , 27 hours ago) ( diff ) |
|---|
Relational Design
Descriptive representation of the relational schema (syntax as used in lectures/exercises - listed relational schemas, attributes, marked primary and secondary keys)
DDL script for creating the database schema and objects:
- The script should (re-)create the schema, all the tables, with all constraints, and all other relevant database objects.
- 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.
- The script should be named schema_creation.sql
- Link the script in this section in the RelationalDesign wiki page as an attachment to the page.
DML script for filling tables with data:
- The script should (re-)create all the data in your tables
- 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.
- The script should be named data_load.sql
- Link the script in this section in the RelationalDesign wiki page as an attachment to the page.
Relational diagram
- DBeaver is the recommended tool for working with the assigned database, if you follow the instructions for connecting to the database.
- 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.
- Switch the diagram to use crow-feet notation.
- 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.
- Export the diagram to a file named relational_schema.jpg and attach it in this section.
Note:
See TracWiki
for help on using the wiki.
