Data World: Represents A Real World Which Is Changing Continuously - 3 Data Worlds
Data World: Represents A Real World Which Is Changing Continuously - 3 Data Worlds
• 3 Data Worlds
infornation data
modeling modeling
object
entity set record type
properties
attributes field
values
values values
stored
database
logical data structure
- hierachical model
collection of trees
- network model
collection of record types and links, i.e., graphs
- relational model
collection of tables
stored
database
physical, low-level model logical, representational model
(logical data structure)
• Entity
- an object that exists and is distinguishable fro
- ex) Yoon S. A. with social security number 7
- may be abstract, such as a holiday or a conce
• Attribute of Relationship
- relationship set can have attributes
- ex) CustAcct's (Harris, 401) has property {
교수번호 이름 학과
지도 강의
학생 과목
등록
학번 이름 학년 과목번호 과목이름 학점
- many-to-many : no restriction
export
Countries Products
- existency dependency
this means that if y is deleted, so is
• Superkey
- a set of one or more attribute wich allow us to
uniquely an entity in the entity set
- may have unnecessary attributes to distinct
• Candidate Key
- minimal superkey
• Primary Key
- a candidate key chosen by the DB designer
(1)
(2)
(3)
ISA
saving- account
account checking-
account number
number account
interest- balance
balance overdraft-
rete amount
hospitalization 입원
m
1 n
doctor treatment patients
치료
lecturer student
student
S93002 Lee S. H. 85
lecturer
S93002 Hur S. 92
P94 Kim C. S. Computer S93001 Park E. Y. 90
customer branch
CustAcct BrncAcct
number balance
account
• 1: n relationship
305 500 • graph
Kim Daesin Pusan 226 336
408 300
instantiation instantiation
class
object 1
object 2
Account object
기존 : all 6% Balance A#
pay-interest
변경 : $1000 -> 5%
$1000 -> 6% 5000 100