Database Model 1
Database Model 1
Data models define how data is connected to each other and how they are
processed and stored inside the system. Data Model gives us an idea that how the
final system will look like after its complete implementation. It defines the data
elements and the relationships between the data elements. Data Models are used
to show how data is stored, connected, accessed and updated in the database
management system. Here, we use a set of symbols and text to represent the
information so that members of the organisation can communicate and
understand it. Some of the Data Models in DBMS are:
1. Hierarchical Model
2. Network Model
3. Entity-Relationship Model
4. Relational Model
5. Object-Oriented Data Model
Hierarchical Model
Hierarchical Model was the first DBMS model. This model organises the
data in the hierarchical tree structure. The hierarchy starts from the root
which has root data and then it expands in the form of a tree adding child
node to the parent node. This model easily represents some of the real-world
relationships like food recipes, sitemap of a website etc. Example: We can
represent the relationship between the shoes present on a shopping website
in the following way:
Advantages of Hierarchical Model
Relational Model
In this model, data is organised in two-dimensional tables and the relationship is
maintained by storing a common field.This model was introduced by E.F Codd in
1970, and since then it has been the most widely used database model, infact, we
can say the only database model used around the world.The basic structure of data
in the relational model is tables. All the information related to a particular type is
stored in rows of that table.Hence, tables are also known as relations in relational
model.
Advnatages of Relational Model
Entity-Relationship Model
Entity-Relationship Model or simply ER Model is a high-level data model
diagram. In this model, we represent the real-world problem in the pictorial
form to make it easy for the stakeholders to understand. It is also very easy
for the developers to understand the system by just looking at the ER
diagram. We use the ER diagram as a visual tool to represent an ER Model.
ER diagram has the following three components:
In the above diagram, the entities are Teacher and Department. The
attributes of Teacher entity are Teacher_Name, Teacher_id, Age, Salary,
Mobile_Number. The attributes of entity Department entity are Dept_id,
Dept_name. The two entities are connected using the relationship. Here,
each teacher works for a department.
Features of ER Model
Advantages of ER Model
In the above example, we have two objects Employee and Department. All the
data and relationships of each object are contained as a single unit. The attributes
like Name, Job_title of the employee and the methods which will be performed
by that object are stored as a single object. The two objects are connected through
a common attribute i.e the Department_id and the communication between these
two will be done with the help of this common id.
What is Centralized Database?
In a traditional database system, data is stored in multiple files. For example, each
customer’s data might be stored in a separate file. In contrast, a centralized
database system stores all of the data in one file. This makes it easier to manage the
data, and it’s also easier to search the data because it’s all stored in the same place.
Definition
Centralized database management system is the system in which all the data is
stored and managed in a single unit. This is also known as central computer
database system. This system is mostly used in an organization, in any Business
Company or in institution to centralize the tasks. Data can be accessed through a
network Local Area Network (LAN) or Wide Area Network (WAN). Mainframe
computer is the example of centralized database management system.
All the data and information are stored in single centralized database management
system. The computer system which fulfills the requirements of all the connected
computers is known as server and other computers are known as clients.
Transparency
All the queries are processed in a single computer system also known as server.
There is no duplication or irrelevant data stored in this management system. All
connected computer has the access to central computer for their query processing
and requirement.
Scalable
Data integrity
Data redundancy
Data is centralized and stored in one location only. There is no duplication of data
and irrelevancy in data.
Data security
Due to storage of data in centralized computer system, the security of data needs to
be stronger. Centralized database management system is more secure and more
efficient.
Data portability
Data can be easily transferred from one computer to another computer because it is
stored in centralized database management system.
Slow processing
Less efficiency
If the multiple users try to access and process query toward server simultaneously
then it creates problem. The processing speed of the central computer turns into
low. These problems may reduce the efficiency.
Loss of data
The database is divided into multiple locations and stores the data in Site1,
Site2,Site3 and Site4.
Advantages
Modular Development. Modular development of a distributed database
implies that a system can be expanded to new locations or units by adding
new servers and data to the existing setup and connecting them to the
distributed system without interruption. This type of expansion causes no
interruptions in the functioning of distributed databases.
Disadvantages
Costly Software. Ensuring data transparency and coordination across
multiple sites often requires using expensive software in a distributed
database system.