LBAW · Databases and Web Applications Laboratory, 2021/22
L.EIC · Bachelor in Informatics and Computing Engineering
FEUP and FCUP, U.Porto
—
Goals
By the end of this class, the student should be able to:
Develop the relational schema from the conceptual schema.
Ensure that the relational schema is in the Boyce-Codd normal form (BCNF).
Document the relational database schema.
Tasks
Present the artefact A4 (Conceptual Data Model).
Map the classes and relationships of the conceptual schema into relation schemas.
For each relation, identify the functional dependencies (FD) that apply.
If the relation is not in BCNF and there are no other impediments, look for several possible decompositions (lossless) in relations in BCNF and choose the “best decomposition” (which preserves more dependencies, that makes more sense, etc. ).
If there is no satisfactory decomposition to BCNF and if the relation is no longer in 3NF, consider the decomposition lossless for 3NF, preserving the functional dependencies.
Test the local PostgreSQL setup and the connection to the production PostgreSQL server.