| 16 | | **Student-Subject** (Student_Id*, Subject_Id*, Final_Grade, Status, Enrollment_Date, Absence_Count) |
| | 16 | **Subject_Professor** (Subject_Id* (Subject), Professor_Id* (Professor)) |
| | 17 | |
| | 18 | **Student_Subject** (Student_Id* (Student), Subject_Id* (Subject), Final_Grade, Status, Enrollment_Date, Absences_Count) |
| | 19 | |
| | 20 | |
| | 21 | ---- |
| | 22 | |
| | 23 | |
| | 24 | == DDL script for creating the database schema and objects: |
| | 25 | [attachment:schema_creation.sql DDL script] |
| | 26 | |
| | 27 | == DML script for inserting data in the tables |
| | 28 | [attachment:data_load.sql DML script] |
| | 29 | |
| | 30 | |
| | 31 | == Relational diagram made in DBeaver |
| | 32 | [[Image(relational_schema.jpg)]] |
| | 33 | |
| | 34 | = AI Usage for Relational Design |
| | 35 | ChatGPT – OpenAI |
| | 36 | URL: https://chat.openai.com/ |
| | 37 | |
| | 38 | Type of subscription: Free online access (no paid subscription required) |
| | 39 | |
| | 40 | Note: This AI tool was selected to assist with database design and relational modeling based on a short survey of available AI tools. Its responses helped in structuring tables, foreign key constraints, and M:N relationships for this project. |
| | 41 | |
| | 42 | == Final Result |
| | 43 | |
| | 44 | == Tables |
| | 45 | |
| | 46 | **University** (Id, Name, Location, IsPrivate) |
| | 47 | |
| | 48 | **Faculty** (Id, University_Id* (University), Name, Location, Study_field) |
| | 49 | |
| | 50 | **Professor** (Id, Faculty_Id* (Faculty), Name, Surname, Age) |
| | 51 | |
| | 52 | **Student** (Id, Faculty_Id* (Faculty), Name, Surname, Location, Student_Index) |
| | 53 | |
| | 54 | **Subject** (Id, Faculty_Id* (Faculty), Name, Semester, Credits) |
| | 55 | |
| | 56 | **Subject_Professor** (Subject_Id* (Subject), Professor_Id* (Professor)) |
| | 57 | |
| | 58 | **Student_Subject** (Student_Id* (Student), Subject_Id* (Subject), Final_Grade, Status, Enrollment_Date, Absences_Count) |
| | 59 | |