Changes between Version 29 and Version 30 of RelationalDesign


Ignore:
Timestamp:
09/09/26 12:36:22 (29 hours ago)
Author:
216009
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RelationalDesign

    v29 v30  
    1 
    21= Relational Design
    32
    43== Notation
    5 - Primary keys are underlined.
    6 
     4- Primary keys are enclosed in [ ] and underlined.
    75- Foreign keys are marked with * at the end of their name and the referenced entity is written in parentheses.
    86
    97== Tables ==
    10 '''University''' ( Id, Name, Location, isprivate )
     8'''University''' ( Id, Name, Location, is_private )
    119
    1210'''Faculty''' ( Id, University_Id* (University), Name, Location, Study_field )
     
    1816'''Subject''' ( Id, Faculty_Id* (Faculty), Name, Semester, Credits )
    1917
    20 '''Student_Subject''' ( [Ss_Id, Student_Id* (Student), Subject_Id* (Subject)], Professor_Id* (Professor), Final_Grade, Status, Enrollment_Date, Absences_Count )
     18'''Student_Subject''' ( [Student_Id* (Student), Subject_Id* (Subject), Ss_Id], Professor_Id* (Professor), Enrollment_Date, Status, Final_Grade, Abesense_Count )
    2119
    2220'''Advice''' ( [Student_Id* (Student), Professor_Id* (Professor), Start_Date], End_Date )
     
    2725
    2826== DDL script for creating the database schema and objects:
    29 [attachment:schema_creation.sql DDL script]
     27[attachment:schema_creation3.sql DDL script]
    3028
    3129== DML script for inserting data in the tables
    32 [attachment:data_load.sql DML script]
     30[attachment:data_load3.sql DML script]
    3331
    3432
    3533== Relational diagram made in DBeaver
    36 [[Image(relational_schema3.png)]]
     34[[Image(relational_schema2.png)]]
    3735
    3836= AI Usage for Relational Design =
     
    4442Type of service/subscription: Free Tier
    4543
    46 Final result: I reviewed my initial core database schema with the AI assistant to identify potential gaps in tracking student-professor interactions and professor-university ties. Based on these discussions, I successfully refined my tables by designing and incorporating the Advice and Affiliated relation schemas.
     44Final result: I reviewed my updated conceptual ER model from Phase 1 to correctly map all entities, weak entities, and relationships into a logical relational database schema. The weak entity Student_Subject was correctly materialized with a composite primary key formed by its owner entities' keys plus its discriminator (Student_Id, Subject_Id, Ss_Id), while all M:N relationships (Advises, affiliated_with, Teach) were materialized as bridge tables.
    4745
    4846== Final Result
    4947
    5048== Tables
    51 '''University''' ( Id, Name, Location, isprivate )
     49'''University''' ( Id, Name, Location, is_private )
    5250
    5351'''Faculty''' ( Id, University_Id* (University), Name, Location, Study_field )
     
    5957'''Subject''' ( Id, Faculty_Id* (Faculty), Name, Semester, Credits )
    6058
    61 '''Student_Subject''' ( [Ss_Id, Student_Id* (Student), Subject_Id* (Subject)], Professor_Id* (Professor), Final_Grade, Status, Enrollment_Date, Absences_Count )
     59'''Student_Subject''' ( [Student_Id* (Student), Subject_Id* (Subject), Ss_Id], Professor_Id* (Professor), Enrollment_Date, Status, Final_Grade, Abesense_Count )
    6260
    6361'''Advice''' ( [Student_Id* (Student), Professor_Id* (Professor), Start_Date], End_Date )
     
    6967----
    7068
    71 
    7269== DDL script for creating the database schema and objects:
    73 [attachment:schema_creation.sql DDL script]
     70[attachment:schema_creation3.sql DDL script]
    7471
    7572== DML script for inserting data in the tables
    76 [attachment:data_load.sql DML script]
     73[attachment:data_load3.sql DML script]
    7774
    7875
    7976== Relational diagram made in DBeaver
    80 [[Image(relational_schema2.png)]]
     77[[Image(relational_schema.png)]]
    8178
    8279
    8380**Results in details / description:**
    8481
    85 
     82Schema Mapping & Normalization Review: All conceptual entities from Phase 1 were mapped to relations. Foreign keys were introdu
    8683== Entire AI usage log:
    8784