Computer Basics - Database
What is a Database?
-
A database stores data in a structured way so that computers can quickly find, insert, update, or delete information.
-
Instead of keeping information in random files, databases organize data systematically (like tables, rows, and columns).
Key Features of a Database
-
Organized structure – Data is stored in a systematic way (like rows and columns in a table).
-
Efficient data access – Makes it easy to search and retrieve specific data.
-
Data integrity – Ensures accuracy and consistency of data.
-
Security – Access can be restricted with passwords, roles, and permissions.
-
Multi-user support – Many users can access the database at the same time.
-
Backup and recovery – Databases can restore lost data in case of failure.
-
Scalability – Can handle small amounts of data (like a school record) to massive amounts (like Google search index).
Types of Databases
-
Relational Database (RDBMS) – Stores data in tables (rows and columns).
-
Example: MySQL, Oracle, PostgreSQL.
-
-
NoSQL Database – Stores unstructured or semi-structured data (JSON, documents, key-value pairs).
-
Example: MongoDB, Cassandra.
-
-
Distributed Database – Data is spread across multiple locations/servers.
-
Cloud Database – Hosted and managed in the cloud (Google Firebase, Amazon RDS).
Examples of Databases in Real Life
-
Banking system → Stores customer accounts and transactions.
-
Library system → Manages books and borrowers.
-
E-commerce sites → Store product details, customer data, and orders.
-
Social media → Store user profiles, posts, and messages.