Database Structures and how they work

Components of a Database

Analysizing a database from how it is being used could be categorized into six areas
These areas are ordered based on when a user identifies the need to store information

1.User
The user component of a database system includes database administrators, software developers, and end users. They either need to store new information or perform operations on existing data.

2.Data
This refers to the actual information a user stores into a Database.

3.Hardware
The hardware component of a database system refers to the physical infrastructure involved in its lifecycle. This includes computers and their various parts, such as hard disks, keyboards, RAM, and servers, which are used to store and manipulate data.

4.Database Access Language
Data access languages enable users to interact with data stored on a server or a computer’s storage. Examples include:

  • Structured Query Language (SQL) – The most commonly used language for managing relational databases.
  • Non-Structured Query Language (NoSQL) – Used for non-relational databases, such as Amazon DynamoDB.
  • GraphQL – Primarily used for APIs, allowing clients to query only the specific data they need.

5.Software
A Database Management System (DBMS) is software that enables users to create, manage, and manipulate databases efficiently. It acts as an intermediary between users and the database, ensuring data is stored, retrieved, and secured properly.
Functions of DBMS

  • Data Storage and Retrieval – Organizes data in tables, documents, or key-value stores.
  • Data Security – Implements authentication and authorization to protect data.
  • Data Integrity – Ensures data consistency through constraints (e.g., primary keys).
  • Transaction Management – Handles operations like commits and rollbacks.
  • Backup and Recovery – Provides mechanisms to recover lost or corrupted data.
DBMS TypeExamplesDescription
Relational DBMS (RDBMS)MySQL, PostgreSQL, Microsoft SQL Server, OracleStores data in tables with relationships using SQL.
NoSQL DBMSMongoDB, DynamoDB, CassandraStores unstructured or semi-structured data.
Object-Oriented DBMSdb4o, ObjectDBStores data as objects, similar to OOP concepts.
Graph DBMSNeo4j, ArangoDBUses nodes and edges to represent relationships.

How Data is Stored in DBMS
Data is stored in DBMS differently depending on the type of DBMS.

RDBMS - Relational DBMS
Data is stored in tables with rows (records) and columns (fields)

NoSQL Databases- Document-Based or Key-Value Storage
Data is stored in flexible JSON-like documents instead of tables

{"EmployeeID": 101, "Name": "John", "Department": "IT"}   

Graph Databases - Node-Edge Storage
Data is represented as nodes (entities) and edges (relationships)
Example:
(John) --[WORKS_IN]--> (IT Department)

6.Procedure
This refers to the guidelines and best practices that govern how users interact with and utilize the Database Management System (DBMS), ensuring efficient, secure, and consistent data management.