Changes between Version 1 and Version 2 of Normalization
- Timestamp:
- 05/19/26 02:54:17 (7 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Normalization
v1 v2 153 153 '''Issues with higher normal forms:''' A relation violates Boyce-Codd Normal Form (BCNF) if a non-trivial functional dependency X → Y exists where X is not a superkey. 154 154 155 '''Action taken:''' We evaluate the left side (determinant) of every functional dependency within our relations.155 '''Action taken:''' We evaluate the left side (determinant) of every functional dependency within all 14 relations: 156 156 157 157 In '''Users''', {{{user_id}}} is a superkey. 158 158 159 In '''Admins''', {{{admin_id}}} is a superkey. 160 161 In '''PetOwners''', {{{owner_id}}} is a superkey. 162 163 In '''PetSitters''', {{{sitter_id}}} is a superkey. 164 165 In '''PetTypes''', {{{pettype_id}}} is a superkey. 166 159 167 In '''Pets''', {{{pet_id}}} is a superkey. 160 168 169 In '''Services''', {{{service_id}}} is a superkey. 170 161 171 In '''Bookings''', {{{booking_id}}} is a superkey. 162 172 163 In the junction tables (e.g., '''BookingPets'''), the composite key is the only determinant, meaning it is trivially a superkey. 173 In '''Reviews''', {{{review_id}}} is a superkey. 174 175 In '''Payments''', {{{payment_id}}} is a superkey. 176 177 In '''AdminManagement''', the composite key ({{{admin_id}}}, {{{user_id}}}) is the only determinant, meaning it is trivially a superkey. 178 179 In '''BookingPets''', the composite key ({{{booking_id}}}, {{{pet_id}}}) is the only determinant, meaning it is trivially a superkey. 180 181 In '''SitterServices''', the composite key ({{{sitter_id}}}, {{{service_id}}}) is the only determinant, meaning it is trivially a superkey. 182 183 In '''BookingServices''', the composite key ({{{booking_id}}}, {{{service_id}}}) is the only determinant, meaning it is trivially a superkey. 164 184 165 185 '''Result:''' In every single relation, the determinant is a candidate/superkey. 166 186 167 '''Status:''' All relations naturally satisfy '''BCNF'''. The decomposition process is mathematically complete. 168 187 '''Status:''' All 14 relations naturally satisfy '''BCNF'''. The decomposition process is complete. 169 188 == Final result and discussion == 170 189
