Beruflich Dokumente
Kultur Dokumente
schema
Product
Prod-id
Prod-desc Unit-cost
Customer
Cust- Cust- Cust- Cust- Custid
name stree city
bal
t
Sales
Cust-id Prod-id Prodcity
Prodprice
Attributes (or
fields, or data
items)
Attributes (or
fields, or data
items)
Attributes (or
fields, or data
items)
The
DBMS
software
derives
the
subschema data requested by application
programs from schema data.
The
database
administrator
(DBA)
ensures that the subschema requested by
application programs is derivable from
schema.
The change in physical organisation of
data, application programs for subschema
need not be changed or modified.
PRODUCT
PRODUCT-ID
PRODUCT-DESC
UNIT-COST
A12345
STEEL ALMIRAH
4000
B23412
DRYER
4500
B44332
FREEZE
6000
A98765
STEEL TABLE
3500
A29834
STEEL CHAIR
4800
C11008
IRON MOULDING
5100
CUSTOMER
CUSTID
CUSTNAME
1001
CUSTSTREET
CUSTCITY
CUSTBAL
Mumbai
65000.
00
1000
KLY
System
Chicago
40000.
00
1005
Goa
84000.
00
1010
Concept
Shapers
32, Main
Road, Ranchi
Mumbai
10500.
00
1006
Trinity
Agencies
P.O.Box 266,
Tokyo
Delhi
11200.
00
SALES
CUST-ID
PROD-ID
QTY
UNITPRICE
1001
A12345
100
6,700
1000
B23412
250
4,000
1010
B44332
120
14,000
1005
A98765
110
5,500
1001
A29834
300
12,999
External
level
(Defined by
user or
application
program)
External Schema
User
view 1
Conceptual level
(Defined by DBA)
Internal Level
(Defined by
DBA)
User
view 1
User
view 1
*******
Conceptual Schema
Internal Schema
Physical
Database
Physical
Level
File
file
file
file
file
User
view 1
Custname
Custstreet
Cust-city
Type CUSTOMER=record
CUST-ID=integer;
CUST-NAME=string;
Integrated record
CUST-STREET=string;
definition of CUSTOMER
record
CUST-CITY=string;
CUST-BAL=integer;
end
Cust-bal
At
the conceptual or global level, the database contains
information concerning an entity type called CUSTOMER. Each
individual customer has a CUST-ID (4 digits), CUST-NAME(20
characters), CUST-STREET(40 Characters) and CUST-BAL(8 digits).
CUSTID
CUSTNAME
CUST-BAL
USERS VIEW
#2
is only one
conceptual schema and one internal
schema
defines
of
of
Abstraction
Level
Physical
level
Low
Medium
Hardware
and
software
dependent
H/w and
S/w
depende
nt
Hierarchical
DBMS
Attention
required
about
physicallevel details
Attentio
n
required
about
physical
level
detail
Attention
required
about
physical
level
detail
Network
DBMS
Attention
required
about
physical
level details
Features
Degrees of
Abstraction
Deg
ree
of
kno
wle
dge
req
uir
ed
By
dat
aba
se
,,
High
Medium
Attention
required
about
physicallev el
detail
,,
,,
DATA INDEPENDENCE
It is a major objective of implementing
DBMS in an organisation.
It is the characteristics of a database
system to change the database schema at
one level without having to change the
schema at the next higher level.
1) Physical Data Independence
2) Logical Data Independence
between
between
for
ex;
objects,
Object Based Data Models:They are used to describe data and its
relationships.
It uses concepts such as entities, attributes
and relationships.
It has flexible data structuring capabilities.
Data integrity constraints can be explicitly
specified.
Level2: Segments
(level-1 children)