database
database
A database is an organized collection of structured data, designed for efficient storage, retrieval, and
management. Databases are used in various applications, from websites and mobile apps to enterprise
systems and cloud storage.
1. Types of Databases
Features:
o Ensures data integrity with constraints (Primary Key, Foreign Key, etc.).
b. NoSQL Databases
Definition: Designed for unstructured or semi-structured data, offering flexibility and scalability.
c. NewSQL Databases
Definition: Combines the best features of SQL and NoSQL for high scalability while maintaining
ACID compliance.
d. In-Memory Databases
e. Time-Series Databases
Definition: Optimized for time-stamped data.
A DBMS is software that interacts with the database to perform CRUD (Create, Read, Update, Delete)
operations.
3. Database Architecture
a. Single-Tier Architecture
b. Two-Tier Architecture
c. Three-Tier Architecture
Adds an intermediate layer (API or middleware) between the client and the database.
4. Database Normalization
Normalization is the process of organizing data to reduce redundancy and improve integrity.
Forms of Normalization:
2. 2NF (Second Normal Form): Ensure that all non-key attributes depend on the primary key.
Indexing
Concurrency Control
Backup Strategies
Cloud Databases