?

Database Normalization

8

() - , . , .

, , .


?

- ( ) . , .

- . , . , .


?

. :

  • ;
  • ;
  • , ;
  • ;
  • , .

. . :

  • , ;
  • , ;
  • , , .

.


, . , , .

:

, 3 :

  1. . «» (employee) «» (sector) Finance, «» (manager). .
  2. . , «» . , (Jacob) Finance, - (Adam).
  3. . (Joshua) , , Finance .

.


, :

  • - , () ;
  • - ;
  • - .

. . - .

, . , .

:

() (UNF)

.

(1NF)

;

(2NF)

.

(3NF)

.

- (BCNF)

(4NF)

(5NF)

JOIN- ( )

. .

?

(key) - , . :

  • (Super Key) - , ;
  • (Candidate Key) - ;
  • (Primary Key) - ; ;
  • (Foreign Key) - ;
  • (Composite Key) - , , .

, .

, :

:

  • employeeID;
  • (employeeID, name);
  • email

. , , .

. :

  • employeeID;
  • email

, . - employeeID, . , .

. :

  • - ; ;
  • - ; ;
  • - : , - . , ;
  • - , .

- . .


. ?

. , (3NF) .

. .

:

, - . .

1: (1NF)

. .

, managerID, managerName area.

   (1NF)

.

2: (2NF)

.

, 2 :

Manager (managerID, managerName, area)

   (2NF),  1

Employee (employeeID, employeeName, managerID, sectorID, sectorName)

   (2NF),  2

2 .

3: (3NF)

. Employee; 2 :

Employee (employeeID, employeeName, managerID, sectorID)

   (3NF),  1

Sector (sectorID, sectorName)

   (3NF),  1

. :

. .


, . .

, .

, .


50% Merion Academy