Changes between Version 20 and Version 21 of Normalization


Ignore:
Timestamp:
09/15/26 12:29:18 (12 days ago)
Author:
232012
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Normalization

    v20 v21  
    243243
    244244
    245 == Normal Form of R Before Decomposition
     245== 1NF Decomposition
    246246
    247247{{{#!div style="text-align: justify; width: 100%;"
    248248
    249 {{{R ∈ 1NF}}}: The universal relation R is in 1NF because all attributes contain atomic values and there are no repeating groups.
     249The universal relation R satisfies First Normal Form (1NF) because every attribute contains a single, atomic value for each tuple. None of the attributes contains a set, list, array, or multiple values stored inside a single field.
     250
     251For example, although a release may be associated with multiple artists, this does not result in several artist values being stored in one attribute. Instead, each association between a release and an artist is represented by a separate tuple through the attributes `release_id` and `artist_id`. The same applies to the relationships between songs and artists, albums and songs, orders and products, wishlists and products, and modifications and products.
     252
     253Similarly, attributes such as `email`, `username`, `price`, `quantity`, `genre`, `status`, `release_ordinal`, and `song_ordinal` each contain one indivisible value within a tuple.
     254
     255Therefore, R contains no repeating groups and no non-atomic attributes meaning:
     256
     257{{{R ∈ 1NF}}}
     258
     259}}}
     260
     261== 2NF Decomposition
     262
     263{{{#!div style="text-align: justify; width: 100%;"
    250264
    251265{{{R ∉ 2NF}}}: Since candidate key of R: **K = {order_id, product_id, artist_id, song_id, modification_id, album_id}** is a composite key, we must check for partial functional dependencies in order to determine whether R satisfies 2NF.
    … …  
    260274and is not in 2NF.
    261275
    262 }}}
    263 
    264 == 2NF Decomposition
    265 
    266 {{{#!div style="text-align: justify; width: 100%;"
    267276==== 1. PRODUCT(product_id, format, price, product_description, stock)
    268277