馃敟 Featured Topic

Database Model ( DBMS )

Database Models

路 A data model is a collection of logical constructs used to represent data structure
and relationship within the database.
路 A database model is used to represent the data into the database.
路 Database models are given as below:

(1)   Hierarchical Model





路 It organizes data in an upside-down tree structure.
路 There is a hierarchy of parent and child data segments.
路 It uses Parent Child Relationships.
路 Here root node is called parent node and root segment is called child node.
路 The parent can have none, one or more child nodes but child nodes can not
have the multiple parent node.
路 That鈥檚 why it represents data into one-to-many relationship between two
entities.

Advantages:
(1) Provide data sharing, data security and data integrity.
(2) Parent/child relationship provides data simplicity.
(3) Provide efficient 1-M relationship.
Disadvantages:
(1) Implementation Complexity.
(2) Lack of structural independence.

(2)   Network Model



路 In Network model we can represent data other than one-to-many relationship.
路 It can represent more than one parent per child.
路 It represents data in many-to-many relationship.
路 The basic data model in the network model is the set construct. A set consist a set
name and a record type.

Advantages:
(1) Conceptual simplicity.
(2) Freedom from problem of data access.
(3) Data Independence.
(4) It includes DDL, DML in DBMS.

Disadvantages:
(1) System complexity.
(2) Absence of structural independence.

(3)   Relational Model :

路 It was developed by E.F. Codd.
路 It uses simple tables instead of more complex tree and network structure.
路 A relational database model is a collection of different tables.
路 Here data and the relationships between the data are organized in tables.
路 Some attributes in tables are defined as KEY attributes.
路 A relation consists of a heading and a body. A heading is a set of attributes. A
body is a set of tuples.

路 Properties of Relational Tables are given as below.
(1) Unique rows and columns.
(2) Key attributes.
(3) Relationship between attributes.

Advantages:
(1) Structural Independence.
(2) Conceptual simplicity.
(3) Freedom from problem of design, implementation and maintenance.
(4) Faster Query capabilities.

Disadvantages:
(1) Hardware/Software problems.
(2) Sometimes create problem in design.

Comments

Popular Posts

Design resources for developers