Tworzenie bazy danych od podstaw (normalizacja)

0

Witam mam do stworzenie bazy danych dla sklepu komputerowego, w bazie danych zawartych ma byc 5 tabel i przynajmniej 20 pozycji, napisalem 20 pozycji ktore chce uzyc w mojej bazie danych a teraz musze zrobic normalizacje 1NF 2NF 3NF i nie badzo wiem jak to zrobic. Moglbym prosic o jakas podpowiedz, i odpowiedz czy te dane beda wystarczajace do tej bazy danych.

PPS No, Staff ID No, staff Name, Staff Phone Number , Staff Address , Staff Salary, Product Id, Product Number, Product Name , Product Price, Product Price + Vat, Customer ID , Customer Name , Customer Address, Customer Phone Number , Supplier Registration ID ,Supplier Name ,Supplier Address, Supplier Price, Sales Transaction Number, Customer ID No, Staff ID No. Order Date , Collection Date, >

0

ja tak na początek to chciałbym mieć tabele:

  • kontrahent
  • towar
  • zamowienie
  • element zamowienia
  • faktura
  • element faktury
    itp
0

Stworzylem Tabele, wlasnie z tego co mialem tam wypisane, mysallem ze mam zaczac od normalizacji. Dodam w zalaczniku zdjecie tych tabel, sa okej?

0

a gdzie poszczególne kroki normalizacji?

0

No wlasnie nie wiem jak z tym ruszyc, googlowalem i nie moge znalezc. Zastanawiam sie jak to wszytsko podzielic i czy mam dodawac jakies nowe tabele podczas normalizacji..

W 1 NF powinienem podzielic wszystkie "atrybuty", wszystkie pozycje.. na 2 grupy ?

0

Czy to by bylo cos takiego?

1NF
Tabela X
Staff ID, PPS No, Staff Name, Staff Phone Number, Staff Address , Staff Salary, Customer ID , Customer Name , Customer Address, Customer Phone Number ,
Tabela XX
Staff ID, Product Id, Product Number, Product Name , Product Price, Supplier Registration ID ,Supplier Name ,Supplier Address, Supplier Price, Sales Transaction Number, Customer ID, Order Date , Collection Date,

2NF
Tabela X
Staff ID, PPS No, Staff Name, Staff Phone Number, Staff Address , Staff Salary,
Tabela XX
Customer ID, Customer Name, Customer Address, Customer Phone Number ,
Tabela XXX
Product Id, Product Number, Product Name , Product Price, Supplier Registration ID ,Supplier Name ,Supplier Address, Supplier Price, Sales Transaction Number, Customer ID, Order Date , Collection Date,
Tabela XXX
Staff ID, Customer ID

3 NF
Tabela X
Staff ID, PPS No, Staff Name, Staff Phone Number, Staff Address , Staff Salary,
Tabela XX
Customer ID, Customer Name, Customer Address, Customer Phone Number ,
Tabela XXX
Product Id, Product Number, Product Name , Product Price,
Tabela XXXX
Supplier Registration ID ,Supplier Name ,Supplier Address, Supplier Price,
Tabela XXXXX
Sales Transaction Number, Order Date , Collection Date,

0

Tutaj masz przykład

0

Za duzo mam tych pozycji i nie wiem co z czym laczyc..Czytajac te poradniki tez nie moge dojsc do ladu, Nawet nie wiem czy mam zastapic te "Tabela X, Tabela XX itd."

0

Z tego poradnika co podales cos naskrobalem.. Czy taka forma 1NF jest poprawna?

1 NF
Shop Staff
Staff ID, PPS No, Staff Name, Staff Phone Number, Staff Address, Staff Salary,
Customers
Staff ID, Customer ID, Customer Name, Customer Address, Customer Phone Number
Supplier
Supplier ID, Supplier Name, Supplier Address, Supplier Price,
Product
Supplier ID, Product Id, Product Number, Product Name, Product Price,
Sales Transaction
Staff ID, Customer ID, Sales Transaction Number, Order Date, Collection Date,

1 użytkowników online, w tym zalogowanych: 0, gości: 1