wiki:WikiStart/Normalization/vtora_verzija

Version 15 (modified by 203206, 3 weeks ago) ( diff )

db2

Нормализација

Определување на функционални зависности

transaction_id = R { account_id, username, e-mail, password, balance, transaction_id, amount, type, timestamp, s_id, r_id, withdraw_id, deposit_id, transferred_id, currency }

account_id -> username, e-mail, password, balance

transaction_id -> amount, type, timestamp, account_id

withdraw_id -> account_id, amount, timestamp

deposit_id -> account_id, amount, timestamp

transferred_id -> s_id, r_id, transaction_id, currency

Лево

  • account_id
  • transaction_id
  • withdraw_id
  • deposit_id
  • transferred_id

Десно

  • username
  • e-mail
  • password
  • balance
  • amount
  • type
  • timestamp
  • currency

Двете

Во мојата шема за база нема атрибут што се јавува како примарен клуч и истовремено надворешен во некоја од табелите.

Покривачи

account_id += {username, e-mail, password, balance} не ги содржи сите атрибути

transaction_id += {amount, type, timestamp, account_id} не ги содржи сите атрибути

withdraw_id += {account_id, amount, timestamp} не ги содржи сите атрибути

deposit_id += {account_id, amount, timestamp} не ги содржи сите атрибути

transferred_id += { s_id, r_id, transaction_id, currency } не ги содржи сите атрибути

account_id, transaction_id = {username, e-mail, password, balance, amount, type, timestamp, account_id} не ги содржи сите атрибути

Note: See TracWiki for help on using the wiki.