The Wayback Machine - https://web.archive.org/web/20261130155027/https://www.geeksforgeeks.org/dbms/what-is-database/

Introduction to Database

Last Updated : 27 Nov, 2026

A database is an organized collection of data that can be stored, managed and retrieved using a database management system (DBMS).

  • Supports storing, searching, updating and deleting information.
  • Uses constraints, permissions and other controls to protect data and maintain its validity.

Working of Databases

Users and applications send requests to the DBMS, which interprets them and carries out the required operations on the stored data.

  • It may provide transaction handling, backup and recovery features.
  • It can optimize queries and manage how data is stored, depending on the DBMS.

Components of a Database

  • Data: The information stored, such as text, numbers, records and files.
  • Schema: Defines the structure of data, including fields, data types and relationships, where applicable.
  • DBMS: Software that manages the database, such as MySQL or PostgreSQL.
  • Queries: Instructions used to retrieve or modify data, often written in SQL for relational databases.
  • Users and Applications: People or software that send requests to the database.

Types of Databases

Database types are classified according to their data models and how they organize, store, and access information.

types
Types of Databases
  • Relational Databases: Store data in tables containing rows and columns.
  • NoSQL Databases: Use non-relational models, such as document, key-value, wide-column and graph.
  • Object-Oriented Databases: Store data as objects, similar to those used in object-oriented programming.
  • Hierarchical Databases: Organize data in a tree-like structure with parent-child relationships.
  • Network Databases: Represent data through records connected by multiple relationships.

ACID Properties

ACID stands for Atomicity, Consistency, Isolation, and Durability. These properties describe transaction guarantees that help maintain reliable database operations.

  • Atomicity: A transaction completes entirely or is rolled back.
  • Consistency: A transaction preserves the database's defined integrity rules.
  • Isolation: Concurrent transactions do not interfere with one another.
  • Durability: Committed changes remain saved even after a system failure.

Real-World Applications of Databases

Databases support many everyday services and business operations.

  • Banking and Finance: Manage accounts, payments and transaction records.
  • Transportation: Store bookings, schedules and route information.
  • Education: Maintain student records, attendance and grades.
  • Retail and E-commerce: Manage products, inventory, orders and customer information.
  • Social Media: Store user profiles, messages, posts and related metadata.
  • Healthcare: Manage patient records, appointments and clinical information.

Database Applications Across Technology Domains

Different technology domains use databases according to their storage, processing and access requirements.

  • Web Development: PostgreSQL and MySQL manage application data, while MongoDB and Cloud Firestore support document-based storage.
  • Mobile Development: SQLite supports local and offline storage, while Cloud Firestore and Firebase Realtime Database enable data synchronization.
  • DevOps and Monitoring: PostgreSQL stores operational records, Redis supports caching and InfluxDB manages time-series metrics.
  • Data Engineering: Apache Cassandra supports distributed data workloads, while Amazon Redshift and Google BigQuery support large-scale analytics.
  • Data Science: PostgreSQL, MongoDB, Apache Hive and Snowflake support data retrieval, preparation and analysis.
  • Artificial Intelligence: PostgreSQL with pgvector and Milvus support vector search for AI applications.
  • Cloud Computing: Amazon Aurora, Google Cloud Spanner and Azure Cosmos DB support cloud-hosted applications and distributed workloads.
  • Blockchain and Web3: Blockchain networks maintain on-chain state, PostgreSQL stores application records and IPFS supports content-addressed data storage.
Comment

Explore