Relational Database Management System
Relational Database Management System
Key Features
1. Tables
Data is organized into tables (relations), where each table is a collection of
related data entries and consists of rows and columns.
2. Schema
Defines the structure of the database, including tables, columns, and data
types.
3. SQL (Structured Query Language)
The standard language for querying and manipulating data in an RDBMS.
ACID Properties
1. Atomicity
Ensures that all operations within a transaction are completed; if not, the
transaction is aborted.
2. Consistency
Ensures the database remains in a consistent state before and after a
transaction.
3. Isolation
Ensures that transactions are isolated from each other until completed.
4. Durability
Ensures that once a transaction is committed, it will remain so, even in the
event of a system failure.
Components
1. Tables
Consist of rows (records) and columns (fields/attributes).
2. Primary Key
A unique identifier for each record in a table.
3. Foreign Key
A field (or collection of fields) in one table that uniquely identifies a row of
another table.
4. Indexes
Improve the speed of data retrieval operations on a database table.
5. Views
Virtual tables created by querying data from one or more tables.
6. Stored Procedures
SQL code that can be saved and reused.
7. Triggers
Automatically execute a specified set of SQL statements when a certain
event occurs.
Popular RDBMS
Advantages:
3. Data Independence: Changes to the database schema do not affect the data
access methods.
Disadvantages:
2. Performance: May not be as fast as other database models (e.g., NoSQL) for
certain types of applications, particularly those involving large-scale read and
write operations.
3. Cost: Some RDBMS solutions can be expensive, both in terms of licensing and
hardware requirements.
Applications: