You are on page 1of 3

Database (tables) Dictionary

Table Name: Name of the Table


Primary Key: Primary key
Foreign Key(s): Foreign key(s) or Secondary key(s)
Database Name: Name of the Database
Name Name of the Field
Data Type Compter storage format
Field Si!e Si!e of the "eld
#nit of
measre
#nits represented by the $ale of the "eld
e.g. inches, pounds, dollar
Coding %bbre$iations sed for each possible real&'orld "eld $ale
(refer SAD Shelly Cashman book pp 230-234)
Data
integrity
rles
Speci"cation of the limitations on 'hat constittes a
legitimate $ale
e.g. alida!ion rules" range check, comple!eness check,
defaul! #alue, e!c
(aintenance
controls
)ndication if $ale is allo'ed to change once it is entered
e.g. $n#oice da!a canno! change once !he in#oice is crea!ed
Formla For a calclated "eld* the e+ation sed to compte the $ale
for the "eld
e.g. Sub!o!al is uni! price !ime %uan!i!y sold
,eferential
)ntegrity
Speci"cations is $ales for the "eld mst match $ales in a
"eld in another table
e.g. !he Cus!&o in a cus!omer order mus! ma!ch a Cus!&o in
!he cus!omer !able
-'nership .ho is responsible for the meaning of this "eld and methods
'hich access and pdate its $ale/
0sample ne1t page
Table Name: OfficialReceipt
Primary Key: officialReceiptID
Foreign Key(s): patientRecordID
employeeID
Database Name: CDC!Database
Name
Data
Type
Field
Size
Unit of
Measure
Coding
Data Integrity
Rules
Maintenance
Controls
Formula Referential Integrity Ownersip
officialReceiptID "igint # none none
$ n%mber cannot be
d%plicated& cannot
be %sed more t'an
once& increments
only by one
OR No( can)t c'ange
once it is created
and is %ni*%e
Pre+io%s
+al%e pl%s
,
$n officialReceiptID in
a OfficialReceipt table
m%st matc' an
officialReceiptID in t'e
-edical.%ppliesDetails
or
ospital.er+iceDetails
table
P'armacist
and Cas'ier
patientRecordID "igint # none none
/ni*%e ID& n%meric
c'aracters only& can0t
be d%plicated
Patient Record No(
can)t c'ange once it
is created
Pre+io%s
+al%e pl%s
,
$ patientRecordID in
an OfficialReceipt table
m%st matc' a
patientRecordID in
PatientRecord table
$dmission
.taff
employeeID int 1 %nits none
/ni*%e ID& n%meric
c'aracters only& can0t
be d%plicated
2mployee ID No(
can)t be c'anged
once it is created
Pre+io%s
+al%e pl%s
,
$n employeeID in an
OfficialReceipt table
m%st matc' an
employeeID in an
2mployee table
$dministrator
date datetime #
-ont'&
day&
year&
'o%r&
min%te&
second
none none
Date can)t be
c'anged once it is
created
C%rrent
system
date
none
P'armacist
and Cas'ier
balance money # Pesos none none
Do3n payment can)t
be c'anged once it is
created
s%m of
(*ty 4
items)
none Cas'ier
Database Capacity
Table Name Name of the Table
,ecord Si!e Smmation of the Field Si!es
No of )nstances %ctal ,ecord Cont
Table Si!e ,ecord Si!e 0 No of )nstances
&&&&&&&&&&&&&&&&&&&&&sample&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Table Name: 2mployee
,ecord Si!e: 34
No/ of )nstances: 5
Table Si!e: 675
Field Name
Field
Size
employee)D 8
pass'ord 8
"rstName 4
middleName 4
lastName 4
9ob)D 6
dept)D 8

You might also like