Академический Документы
Профессиональный Документы
Культура Документы
An introduction
Database System
A very large integrated collection of data of
the entities and relationships
Database system tries to model the real world
systems and the underlying hierarchies, data
(information)flows etc.
A Database Management System (DBMS) is a
software package designed to store and
manage databases.
January 11, 2015
Informatics
Study of database systems has graduated as a
major field of specialization namely
Informatics
Eg. Bioinformatics
Database
A database has many implicit properties
1. A database represents some aspects of the
real world sometimes called the mini world
or the Universe of Discourse(UoD)
Changes to the mini world are reflected in
the database
Properties of database
2. A database is a logically coherent collection of
data with some inherent meaning. A random
assortment of data cannot correctly be
referred to as a database
Properties of database
3. A database is designed, built and populated
with data for a specific purpose. It has an
intended group of users and some pre
conceived applications in which these users
are interested.
Properties of database
4. A database can be of any size and of varying
complexity
5. A database may be generated and maintained
manually or it may be computerized
For small scale use, computerization is a waste
but for large scale application computerization
is very complex but highly effective in
management, reporting monitoring etc
January 11, 2015
Properties of database
6. A computerized database may be created and
maintained either by a group of application
programs written specifically for that task or by a
database management system
Commercial DBMS
ORACLE
SAP
DB
FOXPRO
MS ACCESS
January 11, 2015
10
11
Defining Database
Specifying the data types
Defining structures for the data
Specifying the constraints
12
Constructing Database
Building the database on a suitable medium
MS ACESS works on PC environment
SAP works on large systems
ORACLE can be customized to PC or LAN or even
Distributed Systems
13
Manipulating Database
Querying the database to retrieve specific
data
Updating the database to reflect changes in
the mini world
Generating reports from the data
14
Database System
A database system consists of the DATABASE and
the DBMS Software
MIS- Management Information System
DSS-Decision Support System
ERP-Enterprise wide Resource Planning solution
DCS-Distributed Control System
SCADA-Supervisory Control & Data Acquisition system
End to End Solution(Total Solution for all functional
requirements)
Custom Solution(Partial solution for a particular purpose)
January 11, 2015
15
Characteristics of DBMS
Program-Data independence
The structure of the data files is stored in the
DBMS catalog separately from the access
programs
Program-Operation independence
16
Data Modeling
Data modeling is very essential to understand the
extent and variety of information that are to be
collected and stored to serve the intended
purpose
The more deeper the understanding of the system
functions, interdependence and the end user
requirements or the purposes, the better will be
the data models we develop
17
Data Modeling
Data modeling begins with the use of high
level conceptual data models for database
design
Data modeling involves four steps\
Requirement collection and analysis
Conceptual Design
Implementation of database
Physical design phase
January 11, 2015
18
19
Conceptual Design
Create a conceptual schema for the database using
a conceptual high level data model
-it will give a concise description of the data
requirements of the users
-it do not contain the implementation details
-it can be used for communicating with the non
technical users
-it can also be used to analyze the extent to which
the users data requirements are met and that
the conflicts are resolved/avoided
January 11, 2015
20
Implementation of database
3. The next step after data model/design is the
actual implementation of the database, using
a commercial DBMS
-for this we need data model mapping(logical
design)
-this converts the high level data model to the
implementation data model
-Fine-tuning the requirements considering the
data availability, capability of the DBMS etc
January 11, 2015
21
22
23
24
BRANCH
NAME
CREDIT
COURSE
STUDENT
ROLLNO
ADMYEAR
GRADE
January 11, 2015
25
CODE
DEPT
TITLE
COURSE
TYPE
January 11, 2015
CREDIT
SLOT
26
EMPCODE
DEPT
NAME
FACULTY
DESIG
COURSE
January 11, 2015
27
COURSE
CREDIT
OFFER
STUDENT
FACULTY
ADVISE
January 11, 2015
28
29
30
Types of Attributes
Several types of attributes occur to the ER
model
Simple vs composite
Single valued vs multivalued
Stored vs derived
31
Composite vs Simple
Eg. Name can be a composite attribute if we
want to separate sirname, first name etc
Composite attributes can be divided into
smaller sub parts which represent more basic
attributes with independent meanings
The value of a composite attribute is the
concatenation of the values of the constituent
simple attributes
January 11, 2015
32
Single vs multivalued
Most attributes have a single value for a
particular entity. Such attributes are called
single valued
Employee is an entity
Data of Birth single valued attribute
Qualification multivalued attribute
33
Stored vs Derived
Some attribute like Age can be derived from
another attribute DateofBirth
Some attributes can be derived from related
entities
34
NULL Value
A particular entity may not have an applicable
value for an attribute
For such situations, a special value called NULL
is created
Situations
Missing data(data not entered)
Not known values
Not applicable attribute
35
36
Key Attribute
An important constraint on the entities of an
entity type is the key or uniqueness constraint on
attributes
An entity type usually has an attribute whose
values are distinct for each individual entity in the
collection
Such an attribute is called a key attribute and its
value can be used to identify each entity uniquely
Several attributes could together form key
January 11, 2015
37
38
Types of Relationships
One to One
One to Many
Many to One
Many to Many
39
COURSE
CREDIT
OFFER
STUDENT
FACULTY
ADVISE
January 11, 2015
40