... COP 4710: Database Systems (Day 5) Page 1 Mark Llewellyn
COP 4710: Database Systems
Spring 2004
Introduction to Data Modeling – Part 2
BÀI 5, 1 ngày
COP 4710: Database Systems
Spring 2004
Introduction ... Database Systems (Day 5) Page 29 Mark Llewellyn
Correspondence of E-R & UML Class Diagrams
Entity sets and attributes
customer
customer-name
customer-id
customer-...
... Example ERD
customer
customer-id
customer-name street
apartment-num
phone-num
date-of-birth
age
first-name
middle-name
last-name
address
city
state
zipcode
street-name
street-num
... Strong Entity Sets
(cont.)
loan
loan-num amount
loan-
payment
payment
payment-num
payment-date
amount
COP 4710: Database Systems (Day 4) Page 15 Mark Llewellyn
E-R Model Notation
E
entity set
E
weak ......
... COP 4710: Database Systems (Day 3) Page 1 Mark Llewellyn
COP 4710: Database Systems
Spring 2004
Introduction to Database Systems – Part 2
BÀI 2, 1/2 ngày
School of Electrical ... Level
COP 4710: Database Systems (Day 3) Page 15 Mark Llewellyn
•
The overall description of the database is called the database
schema.
•
There are three different types of schema in the...
... G}
) -) %
COP 4710: Database Systems (Day 10) Page 1 Mark Llewellyn
COP 4710: Database Systems
Spring 2004
Introduction to Normalization
BÀI 10, ½ ngày
COP 4710: Database Systems
Spring ...
non-prime attribute which is partially dependent on
any key of R. In other words, no non-prime attribute
is dependent on only a portion of the key of R.
...
... Lossless Join - Example
A B C D E
(AD)
a
1
b
12
b
13
a
4
b
15
(AB)
a
1
a
2
b
23
b
24
b
25
(BE)
b
31
a
2
b
33
b
34
a
5
(CDE)
b
41
b
42
a
3
a
4
a
5
(AE)
a
1
b
52
b
53
b
54
a
5
COP 4710: Database Systems ... D E
(AD)
a
1
b
12
b
13
a
4
b
15
(AB)
a
1
a
2
b
13
b
24
b
25
(BE)
b
31
a
2
b
33
b
34
a
5
(CDE)
b
41
b
42
a
3
a
4
a
5
(AE)
a
1
b
52
b
13
b
54
a
5
COP 4710...
... A
F&G 56 8H
9E
$
}A,B,C,D{D
G
=
+
COP 4710: Database Systems (Day 12) Page 1 Mark Llewellyn
COP 4710: Database Systems
Spring 2004
Introduction to Normalization – Part ... time: equates a
5
, b
15
, b
25
)
Decomposition has the lossless join property.
;<=%>?
A B C D E
(...
... SQL Tutorials - Phần I (bài 4)
Câu lệnh INSERT INTO :
Như đã nói ở trên câu lệnh INSERT INTO dùng để thêm ... INTO table_name
VALUES (value1, value2, )
Hoặc cũng có thể chỉ rõ cột mà mình muốn insert dữ liệu :
Trích:
INSERT INTO table_name (column1, column2, )
VALUES (value1, value2, )
Insert