Relational Database Management System
(RDBMS)
1 Key Concepts of RDBMS
1. Tables and Relations: Data is organized into tables, each represent-
ing an entity (e.g., Customers, Orders). Each table has a unique name,
columns define attributes (e.g., CustomerID, Name), and rows repre-
sent records.
2. Primary Key: A unique identifier for each row, ensuring no duplicates
(e.g., CustomerID in a Customers table).
3. Foreign Key: A column linking to another table’s primary key, estab-
lishing relationships (e.g., CustomerID in an Orders table linking to Cus-
tomers).
4. Normalization: Organizes data to eliminate redundancy, meeting nor-
mal forms (e.g., 1NF, 2NF, 3NF).
5. SQL (Structured Query Language): Standard language for RDBMS
operations, including:
• CRUD: Create (INSERT), Read (SELECT), Update (UPDATE), Delete
(DELETE).
• Joins: Combine data from multiple tables (e.g., INNER JOIN).
• Aggregation: Functions like COUNT, SUM, AVG.
• Constraints: Rules like NOT NULL, UNIQUE.
6. Data Integrity:
• Entity Integrity: Ensures unique rows via primary keys.
• Referential Integrity: Foreign keys match valid primary keys or
are null.
• Domain Integrity: Ensures valid data formats or ranges.
7. ACID Properties: Ensures reliable transactions:
• Atomicity: Transactions are all-or-nothing.
• Consistency: Maintains database integrity.
• Isolation: Transactions are independent.
• Durability: Committed transactions are saved.
2 Advantages of RDBMS
• Structured Data: Clear table-based organization.
• Data Integrity: Constraints ensure consistency.
1
• Powerful Querying: SQL enables complex data retrieval.
• Scalability: Supports large datasets and users.
• Security: Offers access control and encryption.
3 Limitations of RDBMS
• Scalability: Vertical scaling can be costly.
• Rigid Schema: Fixed structures are less flexible.
• Performance: Complex joins can be slow.
• Unstructured Data: Less suited for JSON, images, etc.
4 Use Cases
• Business: Managing customer data, inventory, finances.
• E-commerce: Storing products, orders, user profiles.
• Banking: Handling transactions with reliability.
• Healthcare: Managing patient records.
5 How RDBMS Works
An RDBMS uses a client-server model with:
• Storage Engine: Manages data storage and retrieval.
• Query Processor: Parses and executes SQL queries.
• Transaction Manager: Ensures ACID compliance.
• Metadata Catalog: Stores database structure.
6 Example
For an online store:
• Table: Customers (CustomerID [Primary Key], Name, Email)
• Table: Orders (OrderID [Primary Key], CustomerID [Foreign Key], Or-
derDate)
Query: SELECT Name, OrderDate FROM Customers JOIN Orders ON [Link]
= [Link]
2
7 Summary
An RDBMS is a robust system for managing relational data, offering power-
ful querying, data integrity, and reliability, though it faces challenges with
unstructured data and scalability.