Changes between Version 1 and Version 2 of Normalization


Ignore:
Timestamp:
05/19/26 02:54:17 (7 days ago)
Author:
181201
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Normalization

    v1 v2  
    153153'''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.
    154154
    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:
    156156
    157157In '''Users''', {{{user_id}}} is a superkey.
    158158
     159In '''Admins''', {{{admin_id}}} is a superkey.
     160
     161In '''PetOwners''', {{{owner_id}}} is a superkey.
     162
     163In '''PetSitters''', {{{sitter_id}}} is a superkey.
     164
     165In '''PetTypes''', {{{pettype_id}}} is a superkey.
     166
    159167In '''Pets''', {{{pet_id}}} is a superkey.
    160168
     169In '''Services''', {{{service_id}}} is a superkey.
     170
    161171In '''Bookings''', {{{booking_id}}} is a superkey.
    162172
    163 In the junction tables (e.g., '''BookingPets'''), the composite key is the only determinant, meaning it is trivially a superkey.
     173In '''Reviews''', {{{review_id}}} is a superkey.
     174
     175In '''Payments''', {{{payment_id}}} is a superkey.
     176
     177In '''AdminManagement''', the composite key ({{{admin_id}}}, {{{user_id}}}) is the only determinant, meaning it is trivially a superkey.
     178
     179In '''BookingPets''', the composite key ({{{booking_id}}}, {{{pet_id}}}) is the only determinant, meaning it is trivially a superkey.
     180
     181In '''SitterServices''', the composite key ({{{sitter_id}}}, {{{service_id}}}) is the only determinant, meaning it is trivially a superkey.
     182
     183In '''BookingServices''', the composite key ({{{booking_id}}}, {{{service_id}}}) is the only determinant, meaning it is trivially a superkey.
    164184
    165185'''Result:''' In every single relation, the determinant is a candidate/superkey.
    166186
    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.
    169188== Final result and discussion ==
    170189