DBMS Notes
DBMS Notes
DISADVANTAGES OF DBMS ::
1. COMPLEX DESIGN , DIFFICULT AND TIME CONSUMING.
2. HARDWARE AND SOFTWARE COST.
3. DAMAGED PART – ENTIRE DATABASE IS AFFECTED.
4. CONVERSION COST
5. TRAINING
APPLICATIONS OF DATABASE ::
1. ACCOUNTING
2. MANUFACTURING
3. UNIVERSITIES
4. RESERVATION SYSTEMS
5. BANKING
6. TELECOMMUNICATION
DATABASE LANGUAGES ::
DATA DEFINATION LANGUAGE (DDL) –
CREATE,ALTER,DROP.TRUNCATE,RENAME
LANGUAGE USED FOR CREATING AND MODIFYING THE STRUCTURES OF TABLES , INDEXES ,
AND VIEWS .
DATA MANIPULATION LANGUAGE (DML) –
INSERT , UPDATE , DELETE
ENABLE USERS TO ACCESS OR MANIPULATE DATA AS ORGANIZED BY APPROPRIATE DATA
MODEL .
DML :
INTERNAL SCHEMA
PHYSICAL STORAGE STRUCTURE OF DATABASE
THIS SCHEMA IS MAINTAINED BY SOFTWARE AND USERS ARE NOT ALLOWED
TO MODIFY IT .
It typically describes the record layout of the files and types of files, access paths etc.
CONCEPTUAL SCHEMA
This schema hides the details of internal level.
This level is also called as logical level as it contains the constructs used for designing
the database.
EXTERNAL SCHEMA
USER VIEW
CAN SEE DATA STORED IN DATABASE BUT CANT SEE HOW IT IS STORED.
DATA MODELS ::
1. RELATIONAL MODEL
ADV -
Structural independence
Conceptual simplicity
Query capability
Easy design, maintenance and usage
DISADV
requires powerful hardware
slower processing time
poor implementation
2. ENTITY-RELATIONSHIP MODEL
DISADV
Loss of information
Limited relationships
No representation for data manipulation
No industry standard
3. OBJECT-BASED DATA MODEL – object oriented features with relational data model
ADV --
Enriched modelling
Reusability
Support for schema evolution
Improved performance
DISADV --
ADV --
Data is not constrained by fixed schema.
It is flexible.
It is portable.
DISADV --
6. NETWORK MODEL --
IT HELPS TO ADDRESS M:N RELATIONSHIP
THE MAIN DIFFERENCE BETWEEN NETWORK MODEL AND HIERARCHICAL MODEL IS TO ALLOW
MANY TO MANY RELATIONSHIP.
ADV
Capability to handle more Relationships
Ease of data access
Data Integrity
Conformance to Standards
DISADV
Complex to implement
Complicated Operations
Difficult to change structure
DATA INDEPENDENCE ::
For example - if there is any change in memory size of database server then it will not affect the
logical structure of any data object.
---- LOGICAL INDEPENDENCE :
allows the modification of conceptual schema without requiring any change to the external schema.
For example - Any change in the table structure such as addition or deletion of some column does
not affect user views.