Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Overview of Database
Management Concepts
NH Rao
Feb 20, 2009
Learning Objectives
Information
Transformed/processed data that has been given meaning by
way of relational connection
= Data + Purpose + organization = DBMS
Wisdom:
Extrapolative knowledge (experience/intuition)
= prediction, Principles
Feb 20, 2009 3
Why manage data in agricultural research?
• data are valuable resources generated after investments
• data are large and complex - generated in multiple plots/
locations and over seasons
• data need to be shared among multiple users/applications
• data need to be updated frequently
• record keeping for intellectual property protection/
biodiversity management/environmental regulations
• many applications – GIS, bioinformatics/plant, livestock,
fish genomics – built around existing DBMS
• for policy, principles, guidelines
Feb 20, 2009 4
Examples of Databases
• Paper sheets in numbered files
• Library books
• Telephone directory
• Dictionary Common feature
• Maps Huge amount of
• Soil samples structured/organized
• DNA samples information that can be
accessed and used
• Germplasm collections
efficiently
• Gene sequences
• Dispatch register
• Computer databases: text, numbers, visual
images, audio images, etc.; in file based
systems, DBMS
Feb 20, 2009 5
Conventional approach to data management
– File based systems
difficult to implement)
Related Tables
1002 Bbbb 3000 700
Independent
1003 Cccc 1500 750
Relate/connect by common identifier
DISTID Year Area_rice Prod_rice
(ha) (tonnes)
1001 1990 100000 150000
Table 2 1001 1991 105000 180000
Related 1001 1992 110000 119000
1002 1990 112350 203450
1002 1991 113000 220000
7
Employee database
leave
Independent Employees
Table Pay
Projects
Training
Broad categories/themes
of related information /
entities – related tables
Agricultural
resources
database
Independent
District
Table/entity
fruits
Cereals
vegetables
Soils
Related Tables/
Weather Entities
Livestock
bytes
Hardware
controlled
bits
NOTE:
•Choice of primary key is usually obvious from the
structure of the Table.
• If there is no easy natural choice for a primary key
add a column containing a unique identifier (serial
number)
• Data in every column of the row must be dependent on
the primary key
Districts Rice
NO
DISTID
DISTID
Name Year
Average Rice_area
rainfall Rice_ production
Record(s)
A record
consists
of
Key field(s), used for setting
relations between tables
whose values should be
unique
Type of Field
Data item(s) Numeric (of fixed length)
Character (of fixed
length)
Date
Logical Fig source:
Memo (of variable length)
Normal data field(s) Bit Ma p
Etc
Summary of key concepts of database design
• Assemble attribute variables (fields, data types)
• Group fields into Entities (Objects/Tables)
• Identify Primary Key field for each entity/table
• represent entities as boxes with listed fields
• Identify independent/related entities/tables
• Identify common field between independent and
related tables
• Establish Relationships by connecting the common fields
• Ensure Referential Integrity between independent and
related tables
Feb 20, 2009 27
When a DBMS may be unnecessary
Design Tables:
Group attributes into tables (relations)
Make a separate table for each set of related attributes, and
give each table a primary key
Eliminate redundant data (derived data)
Use database wizards to
Create tables
Create relationships between tables
Create forms to enter data
Add data and create other database objects
Feb 20, 2009 31
Guidelines for designing database Tables
• Each table should contain information about only one
subject
• Each field should be related directly to the subject of the
table
• Derived or calculated data should not be included in tables
• Information must be stored in its smallest logical parts