Changes between Version 13 and Version 14 of Normalization


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Normalization

    v13 v14  
    6565|| 2 || anita || anita@fein.com || $2y$10$CsSsqA.FFhBR/TWCZCUWYOPxYA.HmGb7ULQPgJGhv3vQS2xRqluYm ||
    6666
     67====== Lossless join test
     68
     69R:
     70||= //user_id =||= //user_name =||= //email =||= //password =||= //transaction_account_id =||= //account_name =||= //balance =||= //transaction_id =||= //transaction_name =||= //amount =||= //net_amount =||= //date =||= //transaction_breakdown_id =||= //spent_amount =||= //earned_amount =||= //tag_id =||= //tag_name =||
     71R1:
     72||= //user_id =||= //user_name =||= //email =||= //password =||
     73
     74R ∩ R1 = { user_id, user_name, email, password }
     75
     76user_id → R1
     77
     78R ∩ R1 → R1
     79
     80⇒ Декомпозицијата е lossless
     81
     82R1.1 = R - { user_name, email, password }
     83
    6784==== R2
    6885
     
    7592|| 3 || debit card || 3200 || 2 ||
    7693
     94====== Lossless join test
     95
     96R1.1:
     97||= //user_id =||= //transaction_account_id =||= //account_name =||= //balance =||= //transaction_id =||= //transaction_name =||= //amount =||= //net_amount =||= //date =||= //transaction_breakdown_id =||= //spent_amount =||= //earned_amount =||= //tag_id =||= //tag_name =||
     98R2:
     99||= //transaction_account_id =||= //account_name =||= //balance =||= //user_id ||
     100
     101R1.1 ∩ R2 = { transaction_account_id, account_name, balance, user_id }
     102
     103transaction_account_id → R
     104
     105R1.1 ∩ R2 → R2
     106
     107⇒ Декомпозицијата е lossless
     108
     109R2.1 = R1.1 - { account_name, balance, user_id }
     110
    77111==== R3
    78112
     
    87121|| 3 || nail polish || -200 || -200 || 19:31:32 Sep 12 2025 || 3 || beauty ||
    88122
     123====== Lossless join test
     124
     125R2.1:
     126||= //transaction_account_id =||= //transaction_id =||= //transaction_name =||= //amount =||= //net_amount =||= //date =||= //transaction_breakdown_id =||= //spent_amount =||= //earned_amount =||= //tag_id =||= //tag_name =||
     127R3:
     128||= //transaction_id =||= //transaction_name =||= //amount =||= //net_amount =||= //date =||= //tag_id =||= //tag_name =||
     129
     130R2.1 ∩ R3 = { transaction_id, transaction_name, amount, net_amount, date, tag_id, tag_name }
     131
     132transaction_id → R3
     133
     134R2.1 ∩ R3 → R3
     135
     136⇒ Декомпозицијата е lossless
     137
     138R3.1 = R2.1 - { transaction_name, amount, net_amount, date, tag_id, tag_name }
     139
    89140==== R4
    90141
     
    96147|| 2 || 2 || 2 || -800 || 600 ||
    97148|| 3 || 3 || 3 || -200 || 0 ||
     149
     150====== Lossless join test
     151
     152R3.1:
     153||= //transaction_account_id =||= //transaction_id =||= //transaction_breakdown_id =||= //spent_amount =||= //earned_amount =||
     154R4:
     155||= //transaction_breakdown_id =||= //transaction_id =||= //transaction_account_id =||= //spent_amount =||= //earned_amount =||
     156
     157R3.1 ∩ R4 = { transaction_breakdown_id, transaction_id, transaction_account_id, spent_amount, earned_amount }
     158
     159transaction_breakdown_id → R4
     160
     161R3.1 ∩ R4 → R4
     162
     163⇒ Декомпозицијата е lossless
     164
     165R4.1 = R3.1 - { transaction_breakdown_id, transaction_id, transaction_account_id, spent_amount, earned_amount }
     166R4.1 = ∅
    98167
    99168=== Премин од 2NF во 3NF