You are on page 1of 14

Database

Management
System

Lecture - 22
Data Volume and Usage Analysis
Statistics about the size and
usage of data plays critical role in
data processing efficiency
Final step of logical DB design or
first step in physical DB design
Data Volume and Usage Analysis
Statistics collected during
analysis phase from the users of
the system
May not be accurate; give the
tentative and relevant figures
Data Volume and Usage Analysis
Composite Usage Map
200
75

PART
1000 SUPPLIER
50

70

40 %
O 70 %
60

140 (50) 40

MANUFAC-
PURCHASED
TURED PART QUOTATION
PART
700 2500
400
40 80
Designing Fields
Field is smallest unit of application
data; corresponds to a simple
attribute
Involves different decisions about
fields
Choosing Data Type
Data type is defined as set of
values along with the operations
that can be performed on them
Precisely depends on the
particular DBMS
Choosing Data Types

Involves four objectives


– Minimize storage space
– Represent all possible values
– Improve data integrity
– Support all data manipulation
Coding Techniques
Values of the attributes with small
domains can be replaced by codes
Codes can be stored in lookup table
or can be hard coded, example
Coding Example
STUDENT stId stName hobby

S1020 Sohail Dar Reading

S1038 Shoaib Ali Gardening

S1015 Tahira Ejaz Reading

S1015 Tahira Ejaz Movies

S1018 Arif Zia Reading


Coding Example
STUDENT HOBBY

stId stName hobby code Hobby

S1020 Sohail Dar R


R Reading
G Gardening
S1038 Shoaib Ali G
M Movies
S1015 Tahira Ejaz R

S1015 Tahira Ejaz M

S1018 Arif Zia R


Controlling Data Integrity
Concerns the possible values that
a field can assume
First such control is enforced by
the data type
Some others are…
Controlling Data Integrity
Default value
Range control
Null values
Referential integrity
Handling missing data
Database
Management
System

Lecture - 22

You might also like