Sitemap
sarmilan

sarmilan

I am Developer

Databases

4 min readJun 5, 2022

--

In this article, we’ll learn the basics of Data & an introduction to databases (what, why, and DBMS)

What is data?

In general, data is any set of characters gathered and translated for some purpose, usually analysis. If data is not put into context, it doesn’t do anything to a human or computer.

There are multiple types of data. Some of the more common types of data include the following:

In a computer’s storage, digital data is a series of bits (binary digits) that have the value of one or zero. Data is processed by the CPU, which uses logical operations to produce new data (output) from source data (input).

what is Database?

A database is an organized collection of structured information, or data, typically stored electronically in a computer system. A database is usually controlled by a database management system (DBMS). Together, the data and the DBMS, along with the associated applications, are referred to as a database system, often shortened to just a database.

Data within the most common types of databases in operation today is typically modeled in rows and columns in a series of tables to make processing and data querying efficient. The data can be easily accessed, managed, modified, updated, controlled, and organized. Most databases use structured query language (SQL) for writing and querying data.

Why Do We Need A Database?

Databases support good data access because: Large volumes of data can be stored in one place. Multiple users can read and modify the data at the same time. Databases are searchable and sortable, so the data you need can be found quickly and easily.

This takes us to the next question, “When do we need a database?”. Consider the following potential problems:

Size

You may have thousands or millions of rows of customers, or any piece of information.

Accuracy

“Do you care if someone entered incorrect data?”. If yes, nothing could prevent me from typing incorrect data into a spreadsheet.

Get sarmilan’s stories in your inbox

Join Medium for free to get updates from this writer.

Security

If the data is sensitive, and you need to restrict access to the data; It doesn’t need to be shared with everyone. In addition, “Do you need to know who made every change at every point?”.

Redundancy

If the redundant data (having multiple copies of the same data) will lead to conflict, you would need to have only non-repeated unique data.

Importance

“What if you had a disconnect or a crash, and you lost your data?”. You’ve probably felt that pain before. And it’s unacceptable to lose important data like orders of a customer, allergies of a patient, flight bookings, …etc.

Overwriting

How about having more than one person overwriting the same data at the same time. How about 10 at the same time or 100 people at the same time?. You’ll end up with everybody overwriting everybody else’s changes.

Database Management SystemDatabase

Management Systems (DBMS) are software systems used to store, retrieve, and run queries on data. A DBMS serves as an interface between an end-user and a database, allowing users to create, read, update, and delete data in the database.

DBMS manages the data, the database engine, and the database schema, allowing for data to be manipulated or extracted by users and other programs. This helps provide data security, data integrity, concurrency, and uniform data administration procedures.

DBMS optimizes the organization of data by following a database schema design technique called normalization, which splits a large table into smaller tables when any of its attributes have redundancy in values. DBMS offers many benefits over traditional file systems, including flexibility and a more complex backup system.

Database management systems can be classified based on a variety of criteria such as the data model, the database distribution, or user numbers. The most widely used types of DBMS software are relational, distributed, hierarchical, object-oriented, and network.

Distributed database management system

A distributed DBMS is a set of logically interrelated databases distributed over a network that is managed by a centralized database application. This type of DBMS synchronizes data periodically and ensures that any data change is universally updated in the database.

Hierarchical database management system

Hierarchical databases organize model data in a tree-like structure. Data storage is either a top-down or bottom-up format and is represented using a parent-child relationship.

Network database management system

The network database model addresses the need for more complex relationships by allowing each child to have multiple parents. Entities are organized in a graph that can be accessed through several paths.

Relational database management system

Relational database management systems (RDBMS) are the most popular data model because of their user-friendly interface. It is based on normalizing data in the rows and columns of the tables. This is a viable option when you need a data storage system that is scalable, flexible, and able to manage lots of information.

Object-oriented database management system

Object-oriented models store data in objects instead of rows and columns. It is based on object-oriented programming (OOP) that allows objects to have members such as fields, properties, and methods.

--

--