Chapter - 1 - Database Concept
Chapter - 1 - Database Concept
Database -
A database is an organized collection of structured data, typically stored and
accessed electronically from a computer system. It's designed to efficiently
manage, store, and retrieve data.
- Redundancy and inconsistency : Data redundancy can occur when the same
data is stored in multiple files, leading to inconsistency and wastage of storage
space.
- Data isolation: In a file system, data is often isolated and fragmented across
various files, making it difficult to access and maintain.
- Data inconsistency: Since data is duplicated across multiple files,
inconsistencies can arise when updates are made to one file but not propagated to
others.
- Lack of security: File systems often lack robust security mechanisms, making
them vulnerable to unauthorized access and data breaches.
- Limited data sharing: Sharing data between different applications can be
challenging in a file system environment.
Benefits of DBMS -
- Data integrity: DBMS ensures data integrity by enforcing constraints and rules
on the data, thereby minimizing the chances of data corruption.
- Data security: DBMS provides mechanisms for authentication, authorization,
and access control, ensuring that only authorized users can access and modify the
data.
- Data consistency: DBMS maintains data consistency by enforcing atomicity,
consistency, isolation, and durability (ACID) properties, ensuring that transactions
are executed reliably.
- Data sharing: DBMS enables concurrent access to data by multiple users and
applications, facilitating data sharing and collaboration.
- Data independence: DBMS provides a layer of abstraction between the
physical storage of data and its logical representation, allowing changes to be made
to the database structure without affecting the applications that use it.
An RDBMS is a type of DBMS that stores data in a tabular form, with rows
representing records and columns representing attributes or fields. It supports the
relational model of data, where data is organized into tables, and relationships
between tables are established using keys.
Data Representation Data is stored in files and Data is stored in tables with rows and
accessed using file APIs. columns.
Data Structure Supports hierarchical, network, Primarily supports the relational data
or relational data models model.
Relationships May or may not support Supports relationships between
relationships between data tables using keys.
elements.
Query Language Uses low-level languages like Uses SQL (Structured Query
SQL or proprietary APIs Language) for data manipulation
Data Integrity Provides basic data integrity Enforces data integrity through
features constraints and rules.
This table highlights some of the key differences between a generic DBMS and an
RDBMS. RDBMS is a specialized form of DBMS that focuses on the relational
model of data and provides additional features for managing relationships between
data elements.