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U&'>3/1+@I
'&/1r%D/'&.]0('!')
8( <.c@+BJ1mI#R#;X$5M
14J.]121'!5 1@+B!0Q%A
1@+.9(m<B0 <1@+.
!,( !>?@.A@1
2B %..!C.(D()1
a) Quản lý kho:
G E+B2"
• 92D'H'6>F.
• E+B#+K2"P#5!C'H1I%P#+<3$.
]J1;#+K!72"20#+K'&3
!C1#5!C{+1I0#+K/'&1#5!C{
2?'C.
G E+B<3"
s3?%@A"@+BJ%P#5%&$
[5A.
s3?45"
E+BJ%P#5%&$
[#ZA.
G E+B:{
R#5!C145#'(###5
!C22(:/|
9(:1.
b) Quản lý danh mục:
o =22D(.
o =24D3.
o =22D41%.
o sD.
c) Quản lý bán sỉ (phân phối sản phẩm):
o W2('H.
o ?'C.
d) Quản lý bán lẻ:
o W2('H.
o ?$.
e) Quản lý hệ thống dữ liệu:
o W!01D:0.
o m!HF.
5B !.!C.(D()1
a5#D+214@I.
9!M"'oB14@I!M#D!HFm
@+B}1;#!HF.
LR##~"!M#D(;'R2P';1!HF1#
D50.
•
!,( !!&!'()1
2 E!F(!!G.!H:1
a. Xác định các thực thể:
q J;"93
93/11
!7(@'R17.
= "
gO9==pP#53q"'I40
317.L4 ( .
9==p%3q"';/+%
3.
]=p'Tq"'T%&17
3.
O]p#5'&q"_';%&17
3.
Okhsp#5€<q.
•
^q !G.!H5"O+K
= "
gOOYpP#5#+Kq"_';40
#+K17'4 ( .
OYp%#+Kq"/+%#+K!H
U17P#5#+K.
]cp'H1Iq"<'I#DfO]
c9].
OWp#5!Cq"<'#5!C#+K.
ja"M+#+
K.
,q !G.!HI"W&#+K
]_';<'#+K.c D!",=Yf
= "
gOWOYpP#5&#+Kq"_4&#+
K17&#+K.L4
( .
WOYp%&#+Kq
-q !G.!HJ"Y2
= "
gOY9 pP#52q"(J'
o%221I2
.L4 ( .
99Y9"2.
xq !G.!HK"Y<3
= "
‚
gOYs pP#5<3q"(J'
o%22/1I<3.
L4 ( .
99Ys"2.
zq !G.!HL"9!7#+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YspgOOYgOYsOWq.
OY†a]OpgOOYgOa]OOW]jq.
a…h]…9h9O[pgOa]O9Wa]OO
gO9cgOaYYq.
a…h]…9h9W•pgOa]W9Wa]WW
gO9cgOaYYq.
OY†a]WpgOOYgOa]WOW]jq.
9ah9c[•9pgO9c9c9O]=9cEEgO=cq.
Y9†9==pgOY9gO9==q.
9ah=f9j=hYpgO9==9==]=9==O]Ok<•q.
a…pgO]=q.
ah=aah9j‡f=[•YpgOaaq.
a†YspgOagOYsq.
ah=aah9jYah9Ya…[pgOaYYaYY]=aYY
O]aYYk<aYY•aYYq.
aYY†YspgOaYYgOYsq.
=af=cfpgO=c=cq.
3. mô tả chi tiết cho các quan hệ:
3.1. Quan hệ sản phẩm:
Oh9YahgpgOOYOY]cOWja
gOWOYgO9OsgO]jgOYaq.
%@"Oh9Yahg
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOOY gP#5#+K = „ Y
^ OY %#+K = x„ k
, ]c LH1I O „ k
- OW O5!C O „ k
x ja M +
9 „ k
z gOWOY gP #5& #+
K
= „ k
• gO9Os gP#5!7#+
<3
= „ k
‚ gO]j gP#5'H = „ k
ƒ gOYa gP #5
+
= „ k
R"^„
5!C"
O5)5;"x„„„.
O5)5'"„„„„.
!75;"x„„„<^„pqˆz„„
!75'"„„„„<^„pqˆ^„„.
L517;Z"
gOOY"5'/+Pf.
OY"/5'Pf.
^
gOWOY"5'/+Pf.
gOgOs"/5'/+Pf.
gOOj"/5'/+Pf.
gOYa"5'/+Pf.
3.2. Quan hệ LOAISANPHAM"
W…h[Oh9YahgpgOWOYWOYq.
%@"W…h[Oh9Yahg
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOWOY gP #5 & #+
K
= „ Y
^ WOY % & #+
K
= x„ k
R"z„
5!C"
O5)5;"„„„.
O5)5'"^„„„.
!75;"„„„<z„pqˆz„
!75'"^„„„<z„pqˆ^„.
L517;Z"
gOWOY"5'/+Pf.
WOY"/5'Pf.
3.3. Quan hệ NUOCSANXUAT:
9f…=Oh9sfhpgO9Os9Osq.
%@"9f…=Oh9sfh
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gO9Os gP #5 !7 #+
<3
= „ Y
^ 9Os % !7 #+
<3
= x„ k
R"z„
5!C"
O5)5;"„„„.
O5)5'"^„„„.
!75;"„„„<z„pqˆz„
!75'"^„„„<z„pqˆ^„.
L517;Z"
gO9Os"5'/+Pf.
9Os"/5'Pf.
3.4. Quan hệ DONGIA:
,
]…9j[hpgO]j9=9jjjjjq.
%@"]…9j[h
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gO]j gP#5'H = „ Y
^ 9=9 922 9 „ k
, jj j5 O „ \„ k
- j j O9 „ \„ k
x jj
o
O x \„ k
R"-x
5!C"
O5)5;"„„.
O5)5'"„„„.
!75;"„„<-xpqˆ x
!75'"„„„<-xpqˆ-x.
L517;Z"
gO]j"5'/+Pf.
3.5. Quan hệ PHIEUBAOHANH :
Ya[•fh…ah9apgOYa9a9aagOOYq.
%@"Ya[•fh…ah9a
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOYa gP#5+
= „ Y
^ 9a 9+ 9 „ k
, 9aa 9& 9 „ k
- gOOY gP#5#+K = „ k
R"-„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<-„pqˆ-„
!75'"x„„„<-„pqˆ^„„.
L517;Z"
gOYa"5'/+Pf.
gOOY"5'/+Pf.
,.z. Quan hệ PHIEUNHAPKHO"
Ya[•f9ahYa…pgOY999Y9gOgO9cq.
-
%@"Ya[•f9ahYa…
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOY9 gP #5
2
= „ Y
^ 99Y9 92
2
9 „ k
, gO gP#5 = „ k
- gO9c gP#541% = „ k
R"-„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<-„pqˆ-„
!75'"x„„„<-„pqˆ^„„.
L517;Z"
gOY9"5'/+Pf.
gO"5'/+Pf.
gO9c"5'/+Pf.
,.•. Quan hệ SP_PNK"
OY†Y9pgOOYgOY9OW]jq.
%@"OY†Y9
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOOY gP #5 #+
K
= „ Yk
pOh9Yahgq
^ gOY9 gP #5
2
= „ Y k
pYa•f9ahYa…q
, OW O5!C O „ k
- ]j LH O „ k
R"-„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<-„pqˆ-„
!75'"x„„„<-„pqˆ^„„.
L517;Z"
x
gOOY"5'/+Pf.
gOY9"5'/+Pf.
,.‚. Quan hệ PHIEUXUATKHO"
Ya[•fsfha…pgOYs99YsgOgO9cq.
%@"Ya[•fsfha…
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOYs gP#5<3
= „ Y
^ 99Ys 92
<3
9 „ k
, gO gP#5 = „ k
- gO9c gP#541% = „ k
‚
R"-„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<-„pqˆ-„
!75'"x„„„<-„pqˆ^„„.
L517;Z"
gOYs"5'/+Pf.
gO"5'/+Pf.
gO9c"5'/+Pf.
3.9. Quan hệ SP_PXK :
OY†YspgOOYgOYsOWq.
%@"OY†Ys
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOOY gP #5 #+
K
= „ Yk
pOh9Yahgq
^ gOYs gP #5
<3
= „ Yk
pYa[•fsfha…q
, OW O5!C O x k
R",x
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<,xpqˆ,x
!75'"x„„„<,xpqˆ•x.
L517;Z"
z
gOOY"5'/+Pf.
gOYs"5'/+Pf.
,.„. Quan hệ SP_HDBS"
OY†a]OpgOOYgOa]OOW]jq.
%@"OY†a]O
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOOY gP #5 #+
K
= „ Yk
pOh9Yahgq
^ gOa]O gP#5('H
#T
= „ Yk
pa…h]…9h9O[q
, OW O5!C O x k
- ]j LH O „ k
R"-x
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<-xpqˆ-x
!75'"x„„„<-xpqˆ^^x.
L517;Z"
gOOY"5'/+Pf.
gOa]O"5'/+Pf.
,.. Quan hệ HOADONBANSI"
a…h]…9h9O[pgOa]O9Wa]OO
gO9cgOaYYq.
%@"a…h]…9h9O[
9"xl„zl^„„‚
O ]r+ ;]W O5
gj W&] ‡
gOa]O gP #5 (
'H#T
= „ Y
^ 9Wa]O 92(
'H#T
9 „ k
, O RI
#T
O ^„ \„ k
- gO9c gP #5 4
1%
= „ k
x gOaYY gP #5
4
5
= „ k
•
R"z„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<z„pqˆz„
!75'"x„„„<z„pqˆ,„„.
L517;Z"
gOa]O"5'/+Pf.
gO9c"5'/+Pf.
gOaYY"/5'/+Pf.
3.12. Quan hệ HOADONBANLE:
a…h]…9h9W•pgOa]W9Wa]WW
gO9cgOaYYq.
%@"a…h]…9h9W•
9"xl„zl^„„‚
O ]r+ ;]W O5
gj W&] ‡
gOa]W gP #5 (
'Hd
= „ Y
^ 9Wa]W 92(
'Hd
= „ k
, W RI
d
O ^„ \„ k
- gO9c gP #5 4
1%
= „ k
x gOa gP #5
J
= „ k
R"z„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<z„pqˆz„
!75'"x„„„<z„pqˆ,„„.
L517;Z"
gOa]W"5'/+Pf.
gO9c"5'/+Pf.
gOa"/5'/+Pf.
3.13. Quan hệ SP_HDBL:
OY†a]WpgOOYgOa]WOW]jq.
‚
%@"OY†a]O
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOOY gP #5 #+
K
= „ Yk
pOh9Yahgq
^ gOa]W gP#5('H
#T
= „ Yk
pa…h]…9h9W•q
, OW O5!C O x k
- ]j LH O „ k
R"-x
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<-xpqˆ-x
!75'"x„„„<-xpqˆ^^x.
L517;Z"
gOOY"5'/+Pf.
gOa]W"5'/+Pf.
3.14. Quan hệ NHANVIEN
9ah9c[•9pgO9c9c9O]=9cEEgO=cq.
%@"9ah9c[•9
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gO9c gP #5 4
1%
= „ Y
^ 9c %41% = x„ k
, 9O 9# 9 „ k
- ]=9c L T 4
1%
= x k
x EE E%@ = x k
z gO=c gP#5U1D = „ k
R"„„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<„„pqˆ„„
!75'"x„„„<„„pqˆx„„.
L517;Z"
gO9c"5'/+Pf.
%9c"/5'Pf.
]=9c"/5'Pf.
ƒ
EE"/5'Pf.
gO=c"5'/+Pf.
3.15. Quan hệ PNK_NCC :
Y9†9==pgOY9gO9==q.
%@"Y9†9==
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOY9 gP #5
2
= „ Yk
pYa[•f9ahYa…q
^ gO9== gP #5
3
= „ Yk
p9ah=f9j=hYq
R"^„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<^„pqˆ^„
!75'"x„„„<^„pqˆ„„.
L517;Z"
gOY9"5'/+Pf.
gO9=="5'/+Pf.
,.z. Quan hệ NHACUNGCAP"
9ah=f9j=hYpgO9==9==]=9==O]Ok<•q.
%@"9ah=f9j=hY
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gO9== gP #5
3
= „ Y
^ 9== %
3
= x„ k
, ]=9== L T
3
= ^„ k
- O] O5'& = „ k
x Ok< O5€< = „ k
z • = „ k
R"„
5!C"
O5)5;"„„„.
O5)5'"^„„„.
!75;"„„„<„pqˆ„
!75'"^„„„<„pqˆ^^„.
^„
L517;Z"
gO9=="5'/+Pf.
9=="/5'Pf.
]=9=="/5'Pf.
O]"/5'/+Pf.
Ok<"/5'/+Pf.
•"/5'/+Pf.
L&0"
•"††‰†.
c"1‰.
91††.†.
,.•. Quan hệ KHO"
a…pgO]=q.
%@"a…
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gO gP#5 = „ Y
^ % = „ k
, ]= LT = ^„ k
R"-„
5!C"
O5)5;"x„„.
O5)5'"„„„.
!75;"x„„<-„pqˆ^„
!75'"„„„<-„pqˆ-„.
L517;Z"
gO"5'/+Pf.
"/5'Pf.
]="/5'Pf.
,.‚.Quan hệ KHACHHANGTRUCTIEP"
ah=aah9j‡f=[•YpgOaaq.
%@"ah=aah9j‡f=[•Y
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOa gP #5
J
= „ Y
^ a %
J
= x„ k
R"z„
5!C"
O5)5;"x„„.
^
O5)5'"^„„„.
!75;"x„„<z„pqˆ,„
!75'"^„„„<z„pqˆ^„.
L517;Z"
gOa"5'/+Pf.
a"/5'Pf.
,.ƒ. Quan hệ KHTT_PXK"
a†YspgOagOYsq.
%@"a†Ys
9"xl„zl^„„‚
O ]r+ ;
]W
O5
gj W&] ‡
gOa gP #5
J
= „ Yk
pah=aah9j‡f=[•Yq
^ gOYs gP #5
<3
= „ YkpYa[•fsfha…q
R"^„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
!75;"„„„<^„pqˆ^„
!75'"x„„„<^„pqˆ„„.
L517;Z"
gOa"5'/+Pf.
gOYs"5'/+Pf.
,.^„. Quan hệ KHACHHANGPHANPHOI"
ah=aah9jYah9Ya…[pgOaYYaYY]=aYY
O]aYYk<aYY•aYYq.
%@"ah=aah9jYah9Ya…[
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gOaYY gP #5
4
5
= „ Y
^ aYY %
4
5
= x„ k
, ]=aYY LT
4
= ^„ k
^^
5
- O]aYY O5'&
45
= „ k
x k<aYY k<
4
5
= „ k
z •aYY •
4
5
= „ k
R"„
5!C"
O5)5;"x„„.
O5)5'"^„„„.
!75;"x„„<„pqˆxx
!75'"^„„„<„pqˆ^^„.
L517;Z"
gOaYY"5'/+Pf.
aYY"/5'Pf.
O]aYY"/5'/+Pf.
k<aYY"/5'/+Pf.
•aYY"/5'Pf.
]=aYY"/5'Pf.
L&0"
•"††‰†.
c"1‰.
91††.†.
,.^. Quan hệ KHPP_PXK"
aYY†YspgOaYYgOYsq.
%@aYY†Ys
9"xl„zl^„„‚
O ]r+ ;
]W
O5
gj W&
]
‡
gOaYY gP #5
45
= „ Yk
pah=aah9jYah9Ya…[q
^ gOYs gP #5
<3
= „ YkpYa[•fsfha…q
R"^„
5!C"
O5)5;"„„„.
O5)5'"x„„„.
^,
!75;"„„„<^„pqˆ^„
!75'"x„„„<^„pqˆ„„.
L517;Z"
gOaYY"5'/+Pf.
gOYs"5'/+Pf.
,.^^.Quan hệ CHUCVU"
=af=cfpgO=c=cq.
%@"=af=cf
9"xl„zl^„„‚
O ]r+ ;]W O5 gj W&] ‡
gO=c gP#5U1D = „ Y
^ =c %U1D = ^„ k
R",„
5!C"
O5)5;"x.
O5)5'"„.
!75;"x<,„pqˆ,„„
!75'"„<,„pqˆ,„„„.
L517;Z"
gO=c"5'/+Pf.
=c"/5'Pf.
4.Mô tả bảng tổng kết :
a. Tổng kết quan hệ:
O %@ O5 !75'pq
Oh9Yahg ^„ ^„„
^ W…h[Oh9Yahg z„ ^„
, 9f…=Oh9sfh z„ ^„
- ]…9j[h -x -x
x Ya[•fh…ah9a -„ ^„„
z Ya[•f9ahYa… -„ ^„„
• OY†Y9 -„ ^„„
‚ Ya[•fsfha… -„ ^„„
ƒ OY†Ys ,x •x
„ OY†a]O -x ^^x
a…h]…9h9O[ z„ ,„„
^ a…h]…9h9W• z„ ,„„
, OY†a]O -x ^^x
- 9ah9c[•9 „„ x„„
x Y9†9== ^„ „„
z 9ah=f9j=hY „ ^^„
• a… -„ -„
^-
‚ ah=aah9j‡f=[•Y z„ ^„
ƒ Y9†9== ^„ „„
^„ ah=aah9jYah9Ya…[ „ ^^„
^ aYY†Ys ^„ „„
^^ =af=cf ,„ ,
R"^„„-ƒ,
b. Tổng kết thuộc tính :
O % ]r+ @
gOOY gP#5#+K Oh9Yahg
Ya[•fh…ah9a
OY†Y9OY†Ys
OY†a]O
a…h]…9h9O[
a…h]…9h9W•
OY†a]W
^ OY %#K Oh9Yahg
, ]c LH1I Oh9Yahg
- OW O5!C Oh9Yahg
x ja M+ Oh9Yahg
z gOWOY gP#5&#+K Oh9Yahg
W…h[Oh9Yahg
• gO9Os gP#5!7#+<3 Oh9Yahg
9f…=Oh9sfh
‚ gO]j gP#5'H Oh9Yahg]…9j[h
ƒ gOYa gP#5+ Oh9Yahg
Ya[•fh…ah9a
„ WOY %&#+K W…h[Oh9Yahg
9Os %!7#+<3 9f…=Oh9sfh
^ 9=9 922 ]…9j[h
, jj j5 ]…9j[h
- j j ]…9j[h
x jj o ]…9j[h
z 9a 9+ Ya[•fh…ah9a
• 9aa 9& Ya[•fh…ah9a
‚ gOY9 gP#52 Ya[•f9ahYa…
OY†Y9Y9†9==
ƒ 99Y9 922 Ya[•f9ahYa…
^„ gO gP#5 Ya[•f9ahYa…
Ya[•fsfha…a…
^ gO9c gP#541% Ya[•f9ahYa…
Ya[•fsfha…
9ah9c[•9
^^ OW O5!C OY†Y9OY†Ys
OY†a]OOY†a]W
^, ]j LH OY†Y9OY†a]O
^x