Professional Documents
Culture Documents
For data entry and retrieval large special programs need to be written.
Programs must make sure that there is no redundant data.
Programs must ensure that data is consistent when different user
manipulates the same data concurrently or if system crashes.
Retrieval of particular data from a large volume will require complex
coding.
5
More…
Data Models
Hierarchical Model
Network Model
Relational Model
Our focus
Object Model
10
Hierarchical Model
node
Doctor 1
a record or a set of data
Patient A Patient B
pointers
Treatment 1 Treatment 2
11
Network Model
Customer Bank
Account
Complexity
No structural independence
Limited ad hoc querying capability
13
Relational Model
Most database system use this model.
The schema for relational model is a table (relation) which has a name,
attributes or column or field and a type for each field.
Relationship is maintained by the common attributes in the tables. Can be
one-one or one to many or many to many.
An example of representation of a relation Student is:
Student(studid: integer, name: string)
Marks(studid: integer, semester:integer, marks:double)
14
Table
Attributes or fields
Student Marks
Stud Name Stud Sem Marks
Id Id
1 Raghu R 1 1 78
2 Mary Molle 2 2 76.6
3 Henry F.Korth 3 3 89
4 Jennifer Wisdom 4 4 90
5 Uma R 5 5 89.3
Advantages
Structural independence
Easy database design, implementations and management.
Ad hoc query capability
RDBMS Products
• Oracle • Sybase
• DB2 • MS-SQL Server
• MySQL
16
Object-oriented features
OODBMS
Conventional DBMS features
17
instances
EMPLOYEE
NAME
ADDRESS Will Smith
DOB
Smith house, Ford Road
class ….
14-Sept-1980
18
ORDBMS
Object model
Object-relation model
Relational model
19
Schema
How should the data appear to users - VIEWS in RDBMS
Disk
Levels of abstraction in DBMS
20
Data Independence
RDBMS Features
Roles DATABASE
ADMINISTRATOR
DATABASE
DESIGNER
Data H/W
uses ADMINISTRATOR
24
Type of user:
Desktop Database
Multi-user Database
Type of location
Centralized database
Distributed database
Distributed database
Transactional or Production DBMS
Data warehousing and decision support
system