You are on page 1of 10

1.

2.

3.

01206361: Computer Applications for Industrial Engineers 1


Microsoft access, ORACLE
Mysql

(real time)

1.

2.

3.

01206361: Computer Applications for Industrial Engineers 2


4.

5.

01206361: Computer Applications for Industrial Engineers 3


(Relational Database)

(Table)
2
( ) (Record)
( ) (Field)
1 2 3

0001 900
0002 500
0003 7000

1
( )

(Index)

.
.

(Primary Key)

1 0001 900

01206361: Computer Applications for Industrial Engineers 4


( )
( )

001 1234567 0001 900 1 001 0001 2


002 9876543 0002 500 2 002 0001 1
0003 7000 3 001 0003 1

1 001 1234567 0001 900 2


2 002 9876543 0001 900 1
3 001 1234567 0003 7000 1

2 3 3

3
( 2)

01206361: Computer Applications for Industrial Engineers 5


ER-

ER- (Entity Relationship


Diagram) 4

4 ER-

ER-
ER-
(Entity)

(Property)

(Relationship)

(1-1) (1-M) (M-N)

01206361: Computer Applications for Industrial Engineers 6


4 3 (3 ,3 )
(Product) (Order) (Customer)
(ProductID) (ProductName)
(UnitPrice) (UnitInStock)

”(
) “
”( )

ER-
ER- 4
1.

2. 1

3.

4. ER-

: ER- - /

01206361: Computer Applications for Industrial Engineers 7


(Normalization)

“ ”
(Normalization Form
NF) 1NF, 2NF 5NF
3NF 3NF
3NF
1NF 2NF

1NF
1NF
5
Order
FirstName LastName Order
Order
FirstName LastName Order
, ,
,

5 1NF

2NF
2NF (
)
2NF

6 (InvNo)
(ProId)

01206361: Computer Applications for Industrial Engineers 8


InvNo InvDate ProdId ProdName BrandName Model Quantity CustId Title FirstName LastName Telephone
10001 10/12/2002 2001 8210 3 1001 123-4567
10001 10/12/2002 2002 PowerEdge2500 5 1001 123-4567
10001 10/12/2002 2003 1800 8 1001 123-4567
10002 10/12/2002 2001 8210 1 1002 . 234-5678
10002 10/12/2002 2004 E200 6 1002 . 234-5678
10003 15/12/2002 2003 1800 9 1001 123-4567
10004 17/12/2002 2001 8210 7 1003 345-6789

ProdId ProdName BrandName Model Price


2001 8210 13000
InvNo ProdId Quantity
2002 PowerEdge2500 140000 10001 2001 3
2003 1800 28000
10001 2002 5
2004 E200 11000
10001 2003 8
10002 2001 1
10002 2004 6
InvNo InvDate CustId Title FirstName LastName Telephone 10003 2003 9
10001 10/12/2002 1001 123-4567 10004 2001 7
10001 10/12/2002 1001 123-4567
10001 10/12/2002 1001 123-4567
10002 10/12/2002 1002 . 234-5678
10002 10/12/2002 1002 . 234-5678
10003 15/12/2002 1001 123-4567
10004 17/12/2002 1003 345-6789

6 2NF

3NF
3NF

6 (CustId)
3NF

01206361: Computer Applications for Industrial Engineers 9


7

InvNo InvDate CustId CustId Title FirstName LastName Telephone


10001 10/12/2002 1001 1001 123-4567
10002 10/12/2002 1002 1002 . 234-5678
10003 15/12/2002 1001 1003 345-6789
10004 17/12/2002 1003

7 3NF

“ ” 6
84 ____ ( 6
7)
1 4 “ ”

: (Normalization)
(Normalization Form) - /

01206361: Computer Applications for Industrial Engineers 10

You might also like