Changes between Version 14 and Version 15 of Normalization


Ignore:
Timestamp:
12/26/25 23:15:11 (7 days ago)
Author:
211101
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Normalization

    v14 v15  
    164164
    165165R4.1 = R3.1 - { transaction_breakdown_id, transaction_id, transaction_account_id, spent_amount, earned_amount }
     166
    166167R4.1 = ∅
    167168
     
    169170Проблем се транзитивните зависности, кои во 2NF сè уште постојат, на пример:
    170171- {transaction_id} → {tag_id} → {tag_name}
    171 - {transaction_account_id} → {user_id} → {user_name, email}
    172172
    173173Ова значи дека некои атрибути кои не се клучеви зависат од други атрибути кои исто така не се клучеви, што ја крши 3NF.
     
    202202|| 3 || debit card || 3200 || 2 ||
    203203
    204 ==== R5
     204==== R3.2
    205205
    206206{transaction_id} → {transaction_name, amount, net_amount, date}
     
    212212|| 3 || nail polish || -200 || -200 || 19:31:32 Sep 12 2025 ||
    213213
     214====== Lossless join test
     215
     216R3:
     217||= //transaction_id =||= //transaction_name =||= //amount =||= //net_amount =||= //date =||= //tag_id =||= //tag_name =||
     218R3.2:
     219||= //transaction_id =||= //transaction_name =||= //amount =||= //net_amount =||= //date =||
     220
     221R3 ∩ R3.2 = { transaction_id, transaction_name, amount, net_amount, date }
     222
     223transaction_id → R3.2
     224
     225R3 ∩ R3.2 → R3.2
     226
     227⇒ Декомпозицијата е lossless
     228
     229R3.3 = R3 - { transaction_id, transaction_name, amount, net_amount, date }
     230
     231==== R3.4
     232
    214233{tag_id} → {tag_name}
    215234
     
    220239|| 3 || beauty ||
    221240
     241====== Lossless join test
     242
     243R3.3:
     244||= //tag_id =||= //tag_name =||
     245R3.4:
     246||= //tag_id =||= //tag_name =||
     247
     248R3.3 ∩ R3.4 = { tag_id, tag_name }
     249
     250tag_id → R3.4
     251
     252R3.3 ∩ R3.4 → R3.4
     253
     254⇒ Декомпозицијата е lossless
     255
     256R3.5 = R3.3 - { tag_id, tag_name }
     257
     258R3.5 = ∅
     259
    222260==== R4
    223261
     
    230268|| 3 || 3 || 3 || -200 || 0 ||
    231269
    232 ==== R6
     270==== R5
    233271
    234272{transaction_id, tag_id} → {}
     
    323361⇒ Тривијално lossless
    324362
    325 ==== 6
     363==== 4
    326364TRANSACTION_BREAKDOWN
    327365